aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-12-04 07:01:30 +0000
committerAndrew Cagney <cagney@redhat.com>1997-12-04 07:01:30 +0000
commit7f48c9fe1ddb51e11b9e86c7a358be60de7310b9 (patch)
tree867b3f6a2313de4517162f6d22a3b2acd6a4fbf9 /sim/d10v
parentbbb9b83c5e929b085064da55497bdf13fb380119 (diff)
downloadgdb-7f48c9fe1ddb51e11b9e86c7a358be60de7310b9.zip
gdb-7f48c9fe1ddb51e11b9e86c7a358be60de7310b9.tar.gz
gdb-7f48c9fe1ddb51e11b9e86c7a358be60de7310b9.tar.bz2
Add DM (bit 4) to PSW. See 7-1 for more info.
Test.
Diffstat (limited to 'sim/d10v')
-rw-r--r--sim/d10v/ChangeLog7
-rw-r--r--sim/d10v/d10v_sim.h1
-rw-r--r--sim/d10v/simops.c2
3 files changed, 10 insertions, 0 deletions
diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog
index 68bca21..91d0bb4 100644
--- a/sim/d10v/ChangeLog
+++ b/sim/d10v/ChangeLog
@@ -1,3 +1,10 @@
+Thu Dec 4 16:51:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * d10v_sim.h (struct _state): Add DM - PSW debug mask.
+
+ * simops.c (OP_5600): For "mvtc", save PSW.DM.
+ (OP_5200): Ditto for "mvfc".
+
Wed Dec 3 17:27:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
* d10v_sim.h (SEXT56): Define.
diff --git a/sim/d10v/d10v_sim.h b/sim/d10v/d10v_sim.h
index 2f9e72b..1fd2d8a 100644
--- a/sim/d10v/d10v_sim.h
+++ b/sim/d10v/d10v_sim.h
@@ -82,6 +82,7 @@ struct _state
uint8 SM;
uint8 EA;
uint8 DB;
+ uint8 DM;
uint8 IE;
uint8 RP;
uint8 MD;
diff --git a/sim/d10v/simops.c b/sim/d10v/simops.c
index 723a7d9..b085c14 100644
--- a/sim/d10v/simops.c
+++ b/sim/d10v/simops.c
@@ -1711,6 +1711,7 @@ OP_5200 ()
if (State.SM) PSW |= 0x8000;
if (State.EA) PSW |= 0x2000;
if (State.DB) PSW |= 0x1000;
+ if (State.DM) PSW |= 0x800;
if (State.IE) PSW |= 0x400;
if (State.RP) PSW |= 0x200;
if (State.MD) PSW |= 0x100;
@@ -1767,6 +1768,7 @@ OP_5600 ()
State.SM = (PSW & 0x8000) ? 1 : 0;
State.EA = (PSW & 0x2000) ? 1 : 0;
State.DB = (PSW & 0x1000) ? 1 : 0;
+ State.DM = (PSW & 0x800) ? 1 : 0;
State.IE = (PSW & 0x400) ? 1 : 0;
State.RP = (PSW & 0x200) ? 1 : 0;
State.MD = (PSW & 0x100) ? 1 : 0;