From: Thomas Huth <huth@tuxfamily.org>
To: Laurent Vivier <laurent@vivier.eu>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] m68k: remove useless parameter op_size from gen_lea_indexed()
Date: Wed, 24 Jun 2015 21:21:56 +0200 [thread overview]
Message-ID: <20150624212156.21144f8f@thh440s> (raw)
In-Reply-To: <1435107109-12500-1-git-send-email-laurent@vivier.eu>
On Wed, 24 Jun 2015 02:51:49 +0200
Laurent Vivier <laurent@vivier.eu> wrote:
> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
> ---
> target-m68k/translate.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/target-m68k/translate.c b/target-m68k/translate.c
> index d6c478f..bc83a6e 100644
> --- a/target-m68k/translate.c
> +++ b/target-m68k/translate.c
> @@ -297,8 +297,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;
> @@ -529,7 +528,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. */
> @@ -545,7 +544,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;
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
prev parent reply other threads:[~2015-06-24 19:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-24 0:51 [Qemu-devel] [PATCH] m68k: remove useless parameter op_size from gen_lea_indexed() Laurent Vivier
2015-06-24 19:21 ` Thomas Huth [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150624212156.21144f8f@thh440s \
--to=huth@tuxfamily.org \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).