qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pstate_read/write ignores nRW field that is kept in env->aarch64


From: ivan.i.kulagin
Subject: pstate_read/write ignores nRW field that is kept in env->aarch64
Date: Tue, 6 Oct 2020 14:36:11 +0300

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]