[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 4/5] hvf: arm: Do not advance PC when raising an exception
From: |
Akihiko Odaki |
Subject: |
[PATCH v3 4/5] hvf: arm: Do not advance PC when raising an exception |
Date: |
Tue, 16 Jul 2024 21:50:33 +0900 |
hvf did not advance PC when raising an exception for most unhandled
system registers, but it mistakenly advanced PC when raising an
exception for GICv3 registers.
Fixes: a2260983c655 ("hvf: arm: Add support for GICv3")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
target/arm/hvf/hvf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c
index ef9bc42738d0..eb090e67a2f8 100644
--- a/target/arm/hvf/hvf.c
+++ b/target/arm/hvf/hvf.c
@@ -1278,6 +1278,7 @@ static int hvf_sysreg_read(CPUState *cpu, uint32_t reg,
uint32_t rt)
/* Call the TCG sysreg handler. This is only safe for GICv3 regs. */
if (!hvf_sysreg_read_cp(cpu, reg, &val)) {
hvf_raise_exception(cpu, EXCP_UDEF, syn_uncategorized());
+ return 1;
}
break;
case SYSREG_DBGBVR0_EL1:
--
2.45.2
[PATCH v3 3/5] target/arm: Always add pmu property for Armv8, Akihiko Odaki, 2024/07/16
[PATCH v3 4/5] hvf: arm: Do not advance PC when raising an exception,
Akihiko Odaki <=
[PATCH v3 5/5] hvf: arm: Properly disable PMU, Akihiko Odaki, 2024/07/16
Re: [PATCH v3 0/5] target/arm/kvm: Report PMU unavailability, Peter Maydell, 2024/07/18