Add DM (bit 4) to PSW. See 7-1 for more info.

Test.
This commit is contained in:
Andrew Cagney 1997-12-04 07:01:30 +00:00
parent bbb9b83c5e
commit 7f48c9fe1d
7 changed files with 72 additions and 0 deletions

View file

@ -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.

View file

@ -82,6 +82,7 @@ struct _state
uint8 SM;
uint8 EA;
uint8 DB;
uint8 DM;
uint8 IE;
uint8 RP;
uint8 MD;

View file

@ -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;