aboutsummaryrefslogtreecommitdiff
path: root/opcodes/crx-dis.c
diff options
context:
space:
mode:
authorTomer Levi <Tomer.Levi@nsc.com>2004-11-29 16:34:35 +0000
committerTomer Levi <Tomer.Levi@nsc.com>2004-11-29 16:34:35 +0000
commit89a649f7aef1d435c136545f48b56c0660ae08ae (patch)
treefd29783822c43c0db4755cb42e630f774af817aa /opcodes/crx-dis.c
parent4df39d6c817862778a7c979cd9796d144db921d5 (diff)
downloadgdb-89a649f7aef1d435c136545f48b56c0660ae08ae.zip
gdb-89a649f7aef1d435c136545f48b56c0660ae08ae.tar.gz
gdb-89a649f7aef1d435c136545f48b56c0660ae08ae.tar.bz2
2004-11-29 Tomer Levi <Tomer.Levi@nsc.com>
* crx-opc.c (crx_optab): Mark all rbase_disps* operands as signed. (no_op_insn): Initialize array with instructions that have no operands. * crx-dis.c (make_instruction): Get rid of COP_BRANCH_INS operand swapping.
Diffstat (limited to 'opcodes/crx-dis.c')
-rw-r--r--opcodes/crx-dis.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/opcodes/crx-dis.c b/opcodes/crx-dis.c
index 840eefc..48c2d0c 100644
--- a/opcodes/crx-dis.c
+++ b/opcodes/crx-dis.c
@@ -651,14 +651,14 @@ static void
make_instruction (void)
{
int i;
- unsigned int temp_value, shift;
+ unsigned int shift;
argument a;
for (i = 0; i < currInsn.nargs; i++)
{
a.type = getargtype (instruction->operands[i].op_type);
if (instruction->operands[i].op_type == cst4
- || instruction->operands[i].op_type == rbase_cst4)
+ || instruction->operands[i].op_type == rbase_dispu4)
cst4flag = 1;
a.size = getbits (instruction->operands[i].op_type);
shift = instruction->operands[i].shift;
@@ -669,15 +669,8 @@ make_instruction (void)
/* Calculate instruction size (in bytes). */
currInsn.size = instruction->size + (size_changed ? 1 : 0);
+ /* Now in bits. */
currInsn.size *= 2;
-
- /* Swapping first and second arguments. */
- if (IS_INSN_TYPE (COP_BRANCH_INS))
- {
- temp_value = currInsn.arg[0].constant;
- currInsn.arg[0].constant = currInsn.arg[1].constant;
- currInsn.arg[1].constant = temp_value;
- }
}
/* Retrieve a single word from a given memory address. */