summaryrefslogtreecommitdiff
path: root/opcodes/hppa-dis.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1999-09-19 20:14:30 +0000
committerJeff Law <law@redhat.com>1999-09-19 20:14:30 +0000
commit22016a030fd393e679e89648d22732ab041600cc (patch)
tree44097a241479a473c4a479cec85697bd71fa0411 /opcodes/hppa-dis.c
parentd1a945a657c5bac6ea2bcb18407d8446fbb5e0b4 (diff)
downloadgdb-22016a030fd393e679e89648d22732ab041600cc.tar.gz
* hppa-dis.c (extract_22): New function.
Diffstat (limited to 'opcodes/hppa-dis.c')
-rw-r--r--opcodes/hppa-dis.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/opcodes/hppa-dis.c b/opcodes/hppa-dis.c
index d34eeabd229..e21815e298b 100644
--- a/opcodes/hppa-dis.c
+++ b/opcodes/hppa-dis.c
@@ -315,6 +315,17 @@ extract_17 (word)
(word & 0x1) << 16, 17) << 2;
}
+static int
+extract_22 (word)
+ unsigned word;
+{
+ return sign_extend (GET_FIELD (word, 19, 28) |
+ GET_FIELD (word, 29, 29) << 10 |
+ GET_FIELD (word, 11, 15) << 11 |
+ GET_FIELD (word, 6, 10) << 16 |
+ (word & 0x1) << 21, 22) << 2;
+}
+
/* Print one instruction. */
int
print_insn_hppa (memaddr, info)
@@ -926,7 +937,6 @@ print_insn_hppa (memaddr, info)
fput_const (extract_14 (insn), info);
break;
-
case '#':
{
int sign = GET_FIELD (insn, 31, 31);