summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2003-02-01 03:00:14 +0000
committerKazu Hirata <kazu@codesourcery.com>2003-02-01 03:00:14 +0000
commit5882e813467ef2cf9031ae5c7a3080ab4b9742ae (patch)
tree2a730536206725725bf19b75bf6368eab932d8b4
parent9dc9bc8caaee597cafed585dfc981996e067123b (diff)
downloadgdb-5882e813467ef2cf9031ae5c7a3080ab4b9742ae.tar.gz
* compile.c (sim_resume): Fix the handling of bxor.
-rw-r--r--sim/h8300/ChangeLog4
-rw-r--r--sim/h8300/compile.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog
index 227966e5195..62fd0735cc0 100644
--- a/sim/h8300/ChangeLog
+++ b/sim/h8300/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-31 Kazu Hirata <kazu@cs.umass.edu>
+
+ * compile.c (sim_resume): Fix the handling of bxor.
+
2003-01-16 Michael Snyder <msnyder@redhat.com>
* compile.c: Change K&R function definitions to ISO.
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c
index e36a0ed104e..e84589904a6 100644
--- a/sim/h8300/compile.c
+++ b/sim/h8300/compile.c
@@ -1505,7 +1505,7 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
OBITOP (O_BIAND, 1, 0, c = !(ea & m) && C);
OBITOP (O_BOR, 1, 0, c = (ea & m) || C);
OBITOP (O_BIOR, 1, 0, c = !(ea & m) || C);
- OBITOP (O_BXOR, 1, 0, c = (ea & m) != C);
+ OBITOP (O_BXOR, 1, 0, c = ((ea & m) != 0) != C);
OBITOP (O_BIXOR, 1, 0, c = !(ea & m) != C);
#define MOP(bsize, signed) \