From: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
To: Alexander Graf <agraf@suse.de>, rth@twiddle.net
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] s390x: Implement SAM{24,31,64}
Date: Tue, 04 Nov 2014 22:02:13 +0000 [thread overview]
Message-ID: <54594CE5.30505@mail.uni-paderborn.de> (raw)
In-Reply-To: <1415132365-16759-1-git-send-email-agraf@suse.de>
On 11/04/2014 08:19 PM, Alexander Graf wrote:
> +static ExitStatus op_sam(DisasContext *s, DisasOps *o)
> +{
> + int sam = s->insn->data;
> + TCGv_i64 tsam = tcg_const_i64(sam);
> +
> + /* Overwrite PSW_MASK_64 and PSW_MASK_32 */
> + tcg_gen_deposit_i64(psw_mask, psw_mask, tsam, 31, 2);
> +
> + tcg_temp_free_i64(tsam);
> + return EXIT_PC_STALE;
> +}
> +
You forgot to zero out bits 64-103 of psw, in case of sam24 and bits
64-96 in case of sam31.
Also you forgot to add 2 (the instruction length) to bits 64-127 of psw
or if this is a target of EXECUTE/EXECUTE RELATIVE LONG add 4/6.
> static ExitStatus op_sar(DisasContext *s, DisasOps *o)
> {
> int r1 = get_field(s->fields, r1);
next prev parent reply other threads:[~2014-11-04 21:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-04 20:19 [Qemu-devel] [PATCH] s390x: Implement SAM{24,31,64} Alexander Graf
2014-11-04 22:02 ` Bastian Koppelmann [this message]
2014-11-04 21:32 ` Alexander Graf
2014-11-04 23:09 ` Bastian Koppelmann
2014-11-05 6:53 ` Richard Henderson
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=54594CE5.30505@mail.uni-paderborn.de \
--to=kbastian@mail.uni-paderborn.de \
--cc=agraf@suse.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.