diff options
author | Laurent Vivier <laurent@vivier.eu> | 2015-06-24 02:51:49 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2015-06-29 17:11:57 +0200 |
commit | a435612616202c837d62626dbe3e33a4e9a95772 (patch) | |
tree | bd2beef78cf6c2a176113302d6cb31ed661cb8fc | |
parent | bb337ac978b6def085eabf17830d5cc2a1bce6a8 (diff) | |
download | qemu-a435612616202c837d62626dbe3e33a4e9a95772.zip qemu-a435612616202c837d62626dbe3e33a4e9a95772.tar.gz qemu-a435612616202c837d62626dbe3e33a4e9a95772.tar.bz2 |
m68k: remove useless parameter op_size from gen_lea_indexed()
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
-rw-r--r-- | target-m68k/translate.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 1f9b7fe..a57d241 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -292,8 +292,7 @@ static TCGv gen_addr_index(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) { uint32_t offset; uint16_t ext; @@ -524,7 +523,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. */ @@ -540,7 +539,7 @@ static TCGv gen_lea(CPUM68KState *env, DisasContext *s, uint16_t insn, s->pc += 2; return tcg_const_i32(offset); case 3: /* pc index+displacement. */ - return gen_lea_indexed(env, s, opsize, NULL_QREG); + return gen_lea_indexed(env, s, NULL_QREG); case 4: /* Immediate. */ default: return NULL_QREG; |