m68k: remove useless parameter op_size from gen_lea_indexed()

Backports commit a435612616202c837d62626dbe3e33a4e9a95772 from qemu
This commit is contained in:
Laurent Vivier 2018-02-13 22:41:53 -05:00 committed by Lioncash
parent 18e3e405c4
commit 2efa61c249
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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;