diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-06-17 15:22:31 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-06-17 15:22:31 +0000 |
commit | 5c55ff99fa88158871d5b9f619c485deae5f3d5b (patch) | |
tree | 1502cd2e665c718a07d82fc36e5afb786ffa0469 /target-ppc/translate_init.c | |
parent | 2e6100507a915581660c86c4f00f8b8812476661 (diff) |
Replace ELF section hack with normal table
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-ppc/translate_init.c')
-rw-r--r-- | target-ppc/translate_init.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index e73bed2a58..87083644f1 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -9260,17 +9260,10 @@ static void fix_opcode_tables (opc_handler_t **ppc_opcodes) /*****************************************************************************/ static int create_ppc_opcodes (CPUPPCState *env, const ppc_def_t *def) { - opcode_t *opc, *start, *end; + opcode_t *opc; fill_new_table(env->opcodes, 0x40); - if (&opc_start < &opc_end) { - start = &opc_start; - end = &opc_end; - } else { - start = &opc_end; - end = &opc_start; - } - for (opc = start + 1; opc != end; opc++) { + for (opc = opcodes; opc < &opcodes[ARRAY_SIZE(opcodes)]; opc++) { if ((opc->handler.type & def->insns_flags) != 0) { if (register_insn(env->opcodes, opc) < 0) { printf("*** ERROR initializing PowerPC instruction " |