From ec56db1a2e659aaea793d3cdeb298c3546128ffa Mon Sep 17 00:00:00 2001 From: Kevin Grandemange Date: Wed, 28 Oct 2015 15:40:08 +0100 Subject: [PATCH] fix linear search of the opcode table. Sentinel was wrong. --- opcodes/microblaze-opc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h index dd56ab506..124db53b0 100644 --- a/opcodes/microblaze-opc.h +++ b/opcodes/microblaze-opc.h @@ -407,7 +407,7 @@ struct op_code_struct {"sleep", INST_TYPE_NONE, INST_PC_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0xBA020004, OPCODE_MASK_HN, invalid_inst, special_inst }, /* translates to mbar 16. */ {"swapb", INST_TYPE_RD_R1, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x900001E0, OPCODE_MASK_H4, swapb, arithmetic_inst }, {"swaph", INST_TYPE_RD_R1, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x900001E2, OPCODE_MASK_H4, swaph, arithmetic_inst }, - {"", 0, 0, 0, 0, 0, 0, 0, 0}, + {NULL, 0, 0, 0, 0, 0, 0, 0, 0}, }; /* Prefix for register names. */