mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target/arm: Implement GPC exceptions
Handle GPC Fault types in arm_deliver_fault, reporting as either a GPC exception at EL3, or falling through to insn or data aborts at various exception levels. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20230620124418.805717-19-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
f65a9bc719
commit
11b76fda0a
4 changed files with 126 additions and 3 deletions
|
@ -10184,6 +10184,7 @@ void arm_log_exception(CPUState *cs)
|
|||
[EXCP_UNALIGNED] = "v7M UNALIGNED UsageFault",
|
||||
[EXCP_DIVBYZERO] = "v7M DIVBYZERO UsageFault",
|
||||
[EXCP_VSERR] = "Virtual SERR",
|
||||
[EXCP_GPC] = "Granule Protection Check",
|
||||
};
|
||||
|
||||
if (idx >= 0 && idx < ARRAY_SIZE(excnames)) {
|
||||
|
@ -10915,6 +10916,10 @@ static void arm_cpu_do_interrupt_aarch64(CPUState *cs)
|
|||
}
|
||||
|
||||
switch (cs->exception_index) {
|
||||
case EXCP_GPC:
|
||||
qemu_log_mask(CPU_LOG_INT, "...with MFAR 0x%" PRIx64 "\n",
|
||||
env->cp15.mfar_el3);
|
||||
/* fall through */
|
||||
case EXCP_PREFETCH_ABORT:
|
||||
case EXCP_DATA_ABORT:
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue