From: <ivan.i.kulagin@gmail.com>
To: <qemu-arm@nongnu.org>
Cc: peter.maydell@linaro.org
Subject: pstate_read/write ignores nRW field that is kept in env->aarch64
Date: Tue, 6 Oct 2020 14:36:11 +0300 [thread overview]
Message-ID: <01e701d69bd4$e49413d0$adbc3b70$@gmail.com> (raw)
Hello!
Could you please explain me why in pstate_read and pstate_write
the nRW bit is ignored?
The comment in CPUState says that nRW (also known as M[4]) is kept,
inverted, in env->aarch64,
but the value returned by pstate_read doesn't contain this bit.
static inline uint32_t pstate_read(CPUARMState *env)
{
int ZF;
ZF = (env->ZF == 0);
return (env->NF & 0x80000000) | (ZF << 30)
| (env->CF << 29) | ((env->VF & 0x80000000) >> 3)
| env->pstate | env->daif | (env->btype << 10);
}
Best regards, Ivan.
next reply other threads:[~2020-10-06 14:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-06 11:36 ivan.i.kulagin [this message]
2020-10-06 12:28 ` pstate_read/write ignores nRW field that is kept in env->aarch64 Peter Maydell
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='01e701d69bd4$e49413d0$adbc3b70$@gmail.com' \
--to=ivan.i.kulagin@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@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 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.