« Previous | Next » 

Revision 4cc35614

ID4cc35614a056839df8b0675cd16f55e758cd570d

Added by Peter Maydell about 10 years ago

target-arm: Store AIF bits in env->pstate for AArch32

To avoid complication in code that otherwise would not need to
care about whether EL1 is AArch32 or AArch64, we should store
the interrupt mask bits (CPSR.AIF in AArch32 and PSTATE.DAIF
in AArch64) in one place consistently regardless of EL1's mode.
Since AArch64 has an extra enable bit (D for debug exceptions)
which isn't visible in AArch32, this means we need to keep
the enables in env->pstate. (This is also consistent with the
general approach we're taking that we handle 32 bit CPUs as
being like AArch64/ARMv8 CPUs but which only run in 32 bit mode.)

Signed-off-by: Peter Maydell <>
Reviewed-by: Peter Crosthwaite <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences