aboutsummaryrefslogtreecommitdiff
path: root/opcodes/cgen-opc.in
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-07-21 20:59:23 +0000
committerDoug Evans <dje@google.com>1998-07-21 20:59:23 +0000
commitfbc8134df62e51a0ce5f91b319214ccb8b74ae6a (patch)
treea9a41063f72dcd116530daa679b964abb05cf25e /opcodes/cgen-opc.in
parent5eb29e2c4f39db040605c975b2aaa76f9fed6f82 (diff)
downloadgdb-fbc8134df62e51a0ce5f91b319214ccb8b74ae6a.zip
gdb-fbc8134df62e51a0ce5f91b319214ccb8b74ae6a.tar.gz
gdb-fbc8134df62e51a0ce5f91b319214ccb8b74ae6a.tar.bz2
* cgen-opc.in (@arch@_cgen_lookup_insn): Update call to
CGEN_EXTRACT_FN. (@arch@_cgen_get_insn_operands): @arch@_cgen_get_operand renamed to @arch_cgen_get_int_operand. * cgen-asm.in (insert_insn_normal): New arg `pc', callers updated. Update call to @arch@_cgen_insert_operand. (@arch@_cgen_assemble_insn): Update call to CGEN_INSERT_FN. * cgen-dis.in (print_normal): Delete use of CGEN_PCREL_OFFSET. (extract_insn_normal): New arg `pc', callers updated. Update call to @arch@_cgen_extract_operand. (print_insn): Update call to CGEN_EXTRACT_FN. * m32r-opc.h,m32r-opc.c,m32r-asm.c,m32r-dis.c: Regenerate.
Diffstat (limited to 'opcodes/cgen-opc.in')
-rw-r--r--opcodes/cgen-opc.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/opcodes/cgen-opc.in b/opcodes/cgen-opc.in
index 8a88898..57a03dd 100644
--- a/opcodes/cgen-opc.in
+++ b/opcodes/cgen-opc.in
@@ -96,8 +96,10 @@ const CGEN_INSN *
extract handler. */
if ((insn_value & CGEN_INSN_MASK (insn)) == CGEN_INSN_VALUE (insn))
{
+ /* ??? 0 is passed for `pc' */
int elength = (*CGEN_EXTRACT_FN (insn)) (insn, NULL,
- insn_value, fields);
+ insn_value, fields,
+ (bfd_vma) 0);
if (elength > 0)
{
/* sanity check */
@@ -121,7 +123,9 @@ const CGEN_INSN *
if (length != CGEN_INSN_BITSIZE (insn))
abort ();
- length = (*CGEN_EXTRACT_FN (insn)) (insn, NULL, insn_value, fields);
+ /* ??? 0 is passed for `pc' */
+ length = (*CGEN_EXTRACT_FN (insn)) (insn, NULL, insn_value, fields,
+ (bfd_vma) 0);
/* Sanity check: must succeed.
Could relax this later if it ever proves useful. */
if (length == 0)
@@ -154,7 +158,8 @@ void
if (op == NULL)
indices[i] = CGEN_OPERAND_INSTANCE_INDEX (opinst);
else
- indices[i] = @arch@_cgen_get_operand (CGEN_OPERAND_INDEX (op), fields);
+ indices[i] = @arch@_cgen_get_int_operand (CGEN_OPERAND_INDEX (op),
+ fields);
}
}