diff options
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 5 | ||||
-rw-r--r-- | opcodes/nios2-dis.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index a471302..53d7340 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2021-03-25 Abid Qadeer <abidh@codesourcery.com> + + * nios2-dis.c (nios2_print_insn_arg): Fix sign extension of + immediate in br.n instruction. + 2021-03-25 Jan Beulich <jbeulich@suse.com> * i386-dis.c (XMGatherD, VexGatherD): New. diff --git a/opcodes/nios2-dis.c b/opcodes/nios2-dis.c index e1cc716..794d700 100644 --- a/opcodes/nios2-dis.c +++ b/opcodes/nios2-dis.c @@ -694,7 +694,7 @@ nios2_print_insn_arg (const char *argptr, switch (op->format) { case iw_I10_type: - o = (((GET_IW_I10_IMM10 (opcode) & 0x3ff) ^ 0x400) - 0x400) * 2; + o = (((GET_IW_I10_IMM10 (opcode) & 0x3ff) ^ 0x200) - 0x200) * 2; break; default: bad_opcode (op); |