OSDN Git Service

target-arm: Implement AArch64 views of fault status and data registers
authorRob Herring <rob.herring@linaro.org>
Tue, 15 Apr 2014 18:18:42 +0000 (19:18 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 17 Apr 2014 20:34:04 +0000 (21:34 +0100)
commit6cd8a2649aafb8e53db4a8f0bf0ea629441f8c03
tree7b46494b34d745af65a5463a419a92a6e1bc011d
parent7e09797c299712cafa7bc05dd57c1b13afcc6039
target-arm: Implement AArch64 views of fault status and data registers

Implement AArch64 views of ESR_EL1 and FAR_EL1, and make the 32 bit
DFSR, DFAR, IFAR share state with them as architecturally specified.
The IFSR doesn't share state with any AArch64 register visible at EL1,
so just rename the state field without widening it to 64 bits.

Signed-off-by: Rob Herring <rob.herring@linaro.org>
[PMM: Minor tweaks; fix some bugs involving inconsistencies between
 use of offsetof() or offsetoflow32() and struct field width]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
target-arm/cpu.c
target-arm/cpu.h
target-arm/helper.c