mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 08:05:36 +00:00
m68k: remove useless parameter op_size from gen_lea_indexed()
Backports commit a435612616202c837d62626dbe3e33a4e9a95772 from qemu
This commit is contained in:
parent
18e3e405c4
commit
2efa61c249
|
@ -276,8 +276,7 @@ static TCGv gen_addr_index(DisasContext *s, uint16_t ext, TCGv tmp)
|
|||
|
||||
/* Handle a base + index + displacement effective addresss.
|
||||
A NULL_QREG base means pc-relative. */
|
||||
static TCGv gen_lea_indexed(CPUM68KState *env, DisasContext *s, int opsize,
|
||||
TCGv base)
|
||||
static TCGv gen_lea_indexed(CPUM68KState *env, DisasContext *s, TCGv base)
|
||||
{
|
||||
TCGContext *tcg_ctx = s->uc->tcg_ctx;
|
||||
uint32_t offset;
|
||||
|
@ -519,7 +518,7 @@ static TCGv gen_lea(CPUM68KState *env, DisasContext *s, uint16_t insn,
|
|||
return tmp;
|
||||
case 6: /* Indirect index + displacement. */
|
||||
reg = AREG(insn, 0);
|
||||
return gen_lea_indexed(env, s, opsize, reg);
|
||||
return gen_lea_indexed(env, s, reg);
|
||||
case 7: /* Other */
|
||||
switch (insn & 7) {
|
||||
case 0: /* Absolute short. */
|
||||
|
@ -535,7 +534,7 @@ static TCGv gen_lea(CPUM68KState *env, DisasContext *s, uint16_t insn,
|
|||
s->pc += 2;
|
||||
return tcg_const_i32(tcg_ctx, offset);
|
||||
case 3: /* pc index+displacement. */
|
||||
return gen_lea_indexed(env, s, opsize, *(TCGv *)tcg_ctx->NULL_QREG);
|
||||
return gen_lea_indexed(env, s, *(TCGv *)tcg_ctx->NULL_QREG);
|
||||
case 4: /* Immediate. */
|
||||
default:
|
||||
return *(TCGv *)tcg_ctx->NULL_QREG;
|
||||
|
|
Loading…
Reference in a new issue