mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 03:25:33 +00:00
target-m68k: eor can manage word and byte operands
Backports commit eec37aec85af9f5fd59b534d20c86a775b8e7973 from qemu
This commit is contained in:
parent
bc52777b00
commit
e140aac281
|
@ -2189,16 +2189,17 @@ DISAS_INSN(eor)
|
|||
{
|
||||
TCGContext *tcg_ctx = s->uc->tcg_ctx;
|
||||
TCGv src;
|
||||
TCGv reg;
|
||||
TCGv dest;
|
||||
TCGv addr;
|
||||
int opsize;
|
||||
|
||||
SRC_EA(env, src, OS_LONG, 0, &addr);
|
||||
reg = DREG(insn, 9);
|
||||
opsize = insn_opsize(insn);
|
||||
|
||||
SRC_EA(env, src, opsize, 0, &addr);
|
||||
dest = tcg_temp_new(tcg_ctx);
|
||||
tcg_gen_xor_i32(tcg_ctx, dest, src, reg);
|
||||
gen_logic_cc(s, dest, OS_LONG);
|
||||
DEST_EA(env, insn, OS_LONG, dest, &addr);
|
||||
tcg_gen_xor_i32(tcg_ctx, dest, src, DREG(insn, 9));
|
||||
gen_logic_cc(s, dest, opsize);
|
||||
DEST_EA(env, insn, opsize, dest, &addr);
|
||||
}
|
||||
|
||||
static void do_exg(TCGContext *tcg_ctx, TCGv reg1, TCGv reg2)
|
||||
|
|
Loading…
Reference in a new issue