« Previous | Next » 

Revision d356312f

IDd356312fdc8640af929e0dbab61c6e514d47feb8

Added by Peter Maydell over 10 years ago

target-arm: Clean up handling of AArch64 PSTATE

The env->pstate field is a little odd since it doesn't strictly
speaking represent an architectural register. However it's convenient
for QEMU to use it to hold the various PSTATE architectural bits
in the same format the architecture specifies for SPSR registers
(since this is the same format the kernel uses for signal handlers
and the KVM register). Add some structure to how we deal with it: * document what env->pstate is * add some #defines for various bits in it * add helpers for reading/writing it taking account of caching
of NZCV, and use them where appropriate * reset it on startup

Signed-off-by: Peter Maydell <>
Message-id:
Reviewed-by: Christoffer Dall <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences