All of lore.kernel.org
 help / color / mirror / Atom feed
* pstate_read/write ignores nRW field that is kept in env->aarch64
@ 2020-10-06 11:36 ivan.i.kulagin
  2020-10-06 12:28 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: ivan.i.kulagin @ 2020-10-06 11:36 UTC (permalink / raw)
  To: qemu-arm; +Cc: peter.maydell

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-06 14:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-06 11:36 pstate_read/write ignores nRW field that is kept in env->aarch64 ivan.i.kulagin
2020-10-06 12:28 ` Peter Maydell

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.