qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: qemu-devel@nongnu.org
Cc: Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH v4] target-m68k: add rol/ror/roxl/roxr instructions
Date: Sun, 27 Nov 2016 18:48:17 +0100	[thread overview]
Message-ID: <ce20560a-3f5c-aa68-0644-4c9897457760@vivier.eu> (raw)
In-Reply-To: <1478899549-21459-1-git-send-email-laurent@vivier.eu>

Le 11/11/2016 à 22:25, Laurent Vivier a écrit :
> --- a/target-m68k/translate.c
> +++ b/target-m68k/translate.c
> +DISAS_INSN(rotate16_im)
> +{
> +    int left = (insn & 0x100);
> +    TCGv reg;
> +    TCGv shift;
> +    int tmp;
> +
> +    reg = gen_extend(DREG(insn, 0), OS_WORD, 0);
> +    tmp = (insn >> 9) & 7;
> +    if (tmp == 0) {
> +        tmp = 8;
> +    }
> +
> +    shift = tcg_const_i32(tmp);
> +    if (insn & 8) {
> +        rotate(reg, shift, left, 16);
> +    } else {
> +        TCGv X = rotate_x(reg, shift, left, 16);
> +        rotate_x_flags(reg, X, 8);

Must be:

        rotate_x_flags(reg, X, 16);

> +        tcg_temp_free(X);
> +    }
> +    tcg_temp_free(shift);
> +    gen_partset_reg(OS_WORD, DREG(insn, 0), reg);
> +    set_cc_op(s, CC_OP_FLAGS);
> +}

Thanks,
Laurent

      parent reply	other threads:[~2016-11-27 17:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-11 21:25 [Qemu-devel] [PATCH v4] target-m68k: add rol/ror/roxl/roxr instructions Laurent Vivier
2016-11-12  8:26 ` Richard Henderson
2016-11-12  8:27   ` Laurent Vivier
2016-11-27 17:48 ` Laurent Vivier [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=ce20560a-3f5c-aa68-0644-4c9897457760@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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).