diff options
author | Nick Clifton <nickc@redhat.com> | 2004-03-30 09:29:19 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-03-30 09:29:19 +0000 |
commit | f4453dfa0a55ca903d7f44216b872c974466a2f3 (patch) | |
tree | 8d2db59f483ed9e0a15bff61f831055e1219ff6a /opcodes | |
parent | 7cc69913c20942a6f601bc2477fd881f1115df08 (diff) | |
download | gdb-f4453dfa0a55ca903d7f44216b872c974466a2f3.zip gdb-f4453dfa0a55ca903d7f44216b872c974466a2f3.tar.gz gdb-f4453dfa0a55ca903d7f44216b872c974466a2f3.tar.bz2 |
Fix bug parsing shigh(0xffff8000)
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/m32r-asm.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 2f82203..65b0898 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2004-03-30 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> + + * m32r-asm.c: Regenerate. + 2004-03-29 Stan Shebs <shebs@apple.com> * mpw-config.in, mpw-make.sed: Remove MPW support files, no longer diff --git a/opcodes/m32r-asm.c b/opcodes/m32r-asm.c index 8c2cc81..87c33f0 100644 --- a/opcodes/m32r-asm.c +++ b/opcodes/m32r-asm.c @@ -4,7 +4,7 @@ THIS FILE IS MACHINE GENERATED WITH CGEN. - the resultant file is machine generated, cgen-asm.in isn't -Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. +Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2004 Free Software Foundation, Inc. This file is part of the GNU Binutils and GDB, the GNU debugger. @@ -111,7 +111,10 @@ parse_hi16 (cd, strp, opindex, valuep) ++*strp; if (errmsg == NULL && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) - value = (value >> 16) + (value & 0x8000 ? 1 : 0); + { + value = value + (value & 0x8000 ? 0x10000 : 0); + value >>= 16; + } *valuep = value; return errmsg; } |