aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v/d10v_sim.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-06-17 23:37:43 +0000
committerAndrew Cagney <cagney@redhat.com>2002-06-17 23:37:43 +0000
commit57af9c8bc0f5254f4d729109ced8744d10b14c1a (patch)
treea0707a99d5ce2799ba0f092d9d8c2c63c507a5c4 /sim/d10v/d10v_sim.h
parentfa88f6772de4b169c1651d73fc956cda828fb1b6 (diff)
downloadfsf-binutils-gdb-57af9c8bc0f5254f4d729109ced8744d10b14c1a.zip
fsf-binutils-gdb-57af9c8bc0f5254f4d729109ced8744d10b14c1a.tar.gz
fsf-binutils-gdb-57af9c8bc0f5254f4d729109ced8744d10b14c1a.tar.bz2
* d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.
Diffstat (limited to 'sim/d10v/d10v_sim.h')
-rw-r--r--sim/d10v/d10v_sim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/d10v/d10v_sim.h b/sim/d10v/d10v_sim.h
index ca14006..09e0631 100644
--- a/sim/d10v/d10v_sim.h
+++ b/sim/d10v/d10v_sim.h
@@ -318,7 +318,7 @@ enum
#define PSW CREG (PSW_CR)
#define SET_PSW(VAL) SET_CREG (PSW_CR, (VAL))
#define SET_HW_PSW(VAL) SET_HW_CREG (PSW_CR, (VAL))
-#define SET_PSW_BIT(MASK,VAL) move_to_cr (PSW_CR, ~(MASK), (VAL) ? (MASK) : 0, 1)
+#define SET_PSW_BIT(MASK,VAL) move_to_cr (PSW_CR, ~((reg_t) MASK), (VAL) ? (MASK) : 0, 1)
#define PSW_SM ((PSW & PSW_SM_BIT) != 0)
#define SET_PSW_SM(VAL) SET_PSW_BIT (PSW_SM_BIT, (VAL))