From: David Hildenbrand <david@redhat.com>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: thuth@redhat.com, cohuck@redhat.com,
Alexander Graf <agraf@suse.de>,
Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH v2 3/3] s390x/tcg: add basic MSA features
Date: Wed, 20 Sep 2017 15:37:57 +0200 [thread overview]
Message-ID: <aee44e68-84e7-fa88-5be1-70e078e00b1d@redhat.com> (raw)
In-Reply-To: <3e21fee6-4560-a3c9-926a-165a6212b1ef@linaro.org>
On 20.09.2017 15:23, Richard Henderson wrote:
> On 09/19/2017 02:36 PM, David Hildenbrand wrote:
>> On 19.09.2017 19:47, Richard Henderson wrote:
>>> On 09/19/2017 09:26 AM, David Hildenbrand wrote:
>>>> + const uint8_t fc = env->regs[0] & 0x7fULL;
>>>
>>> Don't mask here...
>>
>> Bit 56 is the mod bit (see variable "mod") and is checked inside the
>> switch(). The function code really is just composed of bit 57 - 63, so
>> this is correct.
>
> "mod bit"?
>
> # Bit 56 of general register 0 must be zero; oth-
> # erwise, a specification exception is recognized.
>
> I don't suppose this is a change in PoO v11? I'm still looking at v10.
>
I'm also looking at v10.
This bit is called "M" bit for all cpacf instructions that allow
en/decryption. M == modifier bit == mod bit == bit 56
e.g. for KM (7-56)
"When the modifier bit in general register 0 is one, a
decipher operation is performed. ...".
For instructions that don't allow switching between de/encryption (e.g.
KLMD), the modifier bit a.k.a. bit 56 must not be set.
I don't really see the need here to rename mod -> bit_56 here.
Thank!
--
Thanks,
David
next prev parent reply other threads:[~2017-09-20 13:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-19 14:26 [Qemu-devel] [PATCH v2 0/3] Implement basic MSA functions David Hildenbrand
2017-09-19 14:26 ` [Qemu-devel] [PATCH v2 1/3] s390x/tcg: implement spm (SET PROGRAM MASK) David Hildenbrand
2017-09-19 14:26 ` [Qemu-devel] [PATCH v2 2/3] s390x/tcg: move wrap_address() to internal.h David Hildenbrand
2017-09-19 15:29 ` Philippe Mathieu-Daudé
2017-09-19 17:24 ` Richard Henderson
2017-09-19 14:26 ` [Qemu-devel] [PATCH v2 3/3] s390x/tcg: add basic MSA features David Hildenbrand
2017-09-19 17:47 ` Richard Henderson
2017-09-19 19:36 ` David Hildenbrand
2017-09-20 13:23 ` Richard Henderson
2017-09-20 13:37 ` David Hildenbrand [this message]
2017-09-20 15:14 ` [Qemu-devel] [PATCH v2 0/3] Implement basic MSA functions Cornelia Huck
2017-09-20 15:17 ` David Hildenbrand
2017-09-20 15:24 ` Cornelia Huck
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=aee44e68-84e7-fa88-5be1-70e078e00b1d@redhat.com \
--to=david@redhat.com \
--cc=agraf@suse.de \
--cc=aurelien@aurel32.net \
--cc=cohuck@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
/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).