diff options
author | DJ Delorie <dj@redhat.com> | 2006-03-14 03:34:28 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2006-03-14 03:34:28 +0000 |
commit | 727b6b4b411c55d0d6719556bcf6a5da5c54adb6 (patch) | |
tree | f356cad6da3037f2447b33a9a826b98f4d25c0c7 /sim/m32c/reg.c | |
parent | 1f810f7808a9364811ec4e9494eb5fc8daafe232 (diff) | |
download | gdb-727b6b4b411c55d0d6719556bcf6a5da5c54adb6.zip gdb-727b6b4b411c55d0d6719556bcf6a5da5c54adb6.tar.gz gdb-727b6b4b411c55d0d6719556bcf6a5da5c54adb6.tar.bz2 |
* mem.c (mem_put_byte): Hook simulated UART to stdout.
(mem_put_hi): Hook in simulated trace port.
(mem_get_byte): Hook in simulated uart control port.
* opc2c: Be more picky about matching special comments.
* r8c.opc (shift_op): Limit shift counts to -16..16.
(BMcnd): Map conditional codes.
* reg.c (condition_true): Mask condition code to 4 bits.
* syscalls.c: Include local syscall.h.
* syscall.h: New, copied from libgloss.
Diffstat (limited to 'sim/m32c/reg.c')
-rw-r--r-- | sim/m32c/reg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/m32c/reg.c b/sim/m32c/reg.c index 40cb11c..8c01675 100644 --- a/sim/m32c/reg.c +++ b/sim/m32c/reg.c @@ -347,7 +347,7 @@ condition_true (int cond_id) "(S^O)|Z", "O", "!(S^O)", "unk", "!((S^O)|Z)", "!O", "S^O", "unk" }; - switch (cond_id) + switch (cond_id & 15) { case 0: f = FLAG_C; @@ -409,7 +409,7 @@ condition_true (int cond_id) "C", "GTU", "Z", "N", "O", "LE", "LT", "!?" }; - switch (cond_id) + switch (cond_id & 15) { case 0: f = !FLAG_C; |