summaryrefslogtreecommitdiff
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
commite0e52dcc72714052554cd52a50156468f4fb3d51 (patch)
treee9cba296b9189bc49d85b40b79aee8e60055b801 /opcodes/crx-dis.c
parentac5de396575e47377b9e4b7c19d1085b754b2ea8 (diff)
downloadbinutils-redhat-e0e52dcc72714052554cd52a50156468f4fb3d51.tar.gz
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 840eefc074..48c2d0c310 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. */