diff options
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/arc-opc.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index ecc5261..9ca0760 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2016-06-15 Andrew Burgess <andrew.burgess@embecosm.com> + + * arc-opc.c (extract_rhv1): Extract value from insn. + 2016-06-14 Graham Markall <graham.markall@embecosm.com> * arc-nps400-tbl.h: Add ldbit instruction. diff --git a/opcodes/arc-opc.c b/opcodes/arc-opc.c index 433fdcc..25db868 100644 --- a/opcodes/arc-opc.c +++ b/opcodes/arc-opc.c @@ -130,7 +130,7 @@ static int extract_rhv1 (unsigned insn ATTRIBUTE_UNUSED, bfd_boolean * invalid ATTRIBUTE_UNUSED) { - int value = 0; + int value = ((insn & 0x7) << 3) | ((insn >> 5) & 0x7); return value; } |