Skip to content

Commit cde503b

Browse files
committed
qemu: more verbose error when ISV=0
1 parent c3e08c3 commit cde503b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

patches/qemu-9.1.2-utm.patch

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,3 +1173,35 @@ index 5b1e375726..251fc58b42 100644
11731173
--
11741174
2.41.0
11751175

1176+
From 95f49a57c87a697ad972f9a107792b2b0abc2177 Mon Sep 17 00:00:00 2001
1177+
From: osy <osy@turing.llc>
1178+
Date: Mon, 17 Feb 2025 07:19:28 -0800
1179+
Subject: [PATCH] hvf: arm: more verbose error when ISV=0
1180+
1181+
---
1182+
target/arm/hvf/hvf.c | 9 ++++++++-
1183+
1 file changed, 8 insertions(+), 1 deletion(-)
1184+
1185+
diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c
1186+
index ec4821a61a..7396d783d6 100644
1187+
--- a/target/arm/hvf/hvf.c
1188+
+++ b/target/arm/hvf/hvf.c
1189+
@@ -2062,7 +2062,14 @@ int hvf_vcpu_exec(CPUState *cpu)
1190+
break;
1191+
}
1192+
1193+
- assert(isv);
1194+
+ if (!isv) {
1195+
+ uint32_t insn;
1196+
+
1197+
+ address_space_read(&address_space_memory, hvf_exit->exception.physical_address,
1198+
+ MEMTXATTRS_UNSPECIFIED, &insn, sizeof(insn));
1199+
+ error_report("Failed to handle EC_DATAABORT. ISV=0 with PC=0x%llx: 0x%08X. Please report this bug.", hvf_exit->exception.virtual_address, insn);
1200+
+ abort();
1201+
+ }
1202+
1203+
if (iswrite) {
1204+
val = hvf_get_reg(cpu, srt);
1205+
--
1206+
2.41.0
1207+

0 commit comments

Comments
 (0)