X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=sim%2Frl78%2Frl78.c;h=95ae1b1a78564fb5902e42aacda3b1b7832fa1c4;hb=128e85e3ab36b8e30f6612fb50de3cbb4ede6824;hp=aca6762f998f45071c0f127dbf7877601feae749;hpb=32d0add0a654c1204ab71dc8a55d9374538c4b33;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/rl78/rl78.c b/sim/rl78/rl78.c index aca6762f99..95ae1b1a78 100644 --- a/sim/rl78/rl78.c +++ b/sim/rl78/rl78.c @@ -1,6 +1,6 @@ /* rl78.c --- opcode semantics for stand-alone RL78 simulator. - Copyright (C) 2008-2015 Free Software Foundation, Inc. + Copyright (C) 2008-2016 Free Software Foundation, Inc. Contributed by Red Hat, Inc. This file is part of the GNU simulators. @@ -421,10 +421,16 @@ decode_opcode (void) int a, b, v, v2; unsigned int u, u2; int obits; + RL78_Dis_Isa isa; + + isa = (rl78_g10_mode ? RL78_ISA_G10 + : g14_multiply ? RL78_ISA_G14 + : g13_multiply ? RL78_ISA_G13 + : RL78_ISA_DEFAULT); rl78_data.dpc = pc; opcode_size = rl78_decode_opcode (pc, &opcode, - rl78_get_byte, &rl78_data); + rl78_get_byte, &rl78_data, isa); opcode_pc = pc; pc += opcode_size; @@ -851,7 +857,7 @@ decode_opcode (void) rl78_data.dpc = pc; opcode_size = rl78_decode_opcode (pc, &opcode, - rl78_get_byte, &rl78_data); + rl78_get_byte, &rl78_data, isa); pc += opcode_size; tprintf (" skipped: %s\n", opcode.syntax); break;