* d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.
authorAndrew Cagney <cagney@redhat.com>
Mon, 17 Jun 2002 23:37:43 +0000 (23:37 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 17 Jun 2002 23:37:43 +0000 (23:37 +0000)
sim/d10v/ChangeLog
sim/d10v/d10v_sim.h

index f6e5eac332da4dd419076cd4b2d7c01e5ea15de4..320eb98b1c4b74b24622c3c1805326e6dcde1d40 100644 (file)
@@ -1,3 +1,7 @@
+2002-06-17  Andrew Cagney  <cagney@redhat.com>
+
+       * d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.
+
 2002-06-16  Andrew Cagney  <ac131313@redhat.com>
 
        * configure: Regenerated to track ../common/aclocal.m4 changes.
index ca14006fbce7fea368e617dacefdc6db93837698..09e0631126fb4c49acb2ab5769812e6082d198be 100644 (file)
@@ -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))
This page took 0.029336 seconds and 4 git commands to generate.