Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
TODO: audit it is safe
---
target/arm/hvf/hvf.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c
index 639eef3b800..113f1415011 100644
--- a/target/arm/hvf/hvf.c
+++ b/target/arm/hvf/hvf.c
@@ -1616,6 +1616,9 @@ static int hvf_sysreg_write(CPUState *cpu, uint32_t reg,
uint64_t val)
}
break;
case SYSREG_MDSCR_EL1:
+ if (hvf_sysreg_write_cp(cpu, "Monitor Debug", reg, val)) {
+ return 0;
+ }
env->cp15.mdscr_el1 = val;
return 0;
case SYSREG_DBGBVR0_EL1:
--
2.51.0