diff options
Diffstat (limited to 'target/arm/cpu.c')
| -rw-r--r-- | target/arm/cpu.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 876ab8f3bf..0b333a749f 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -539,9 +539,12 @@ static void arm_cpu_reset_hold(Object *obj) } #endif - hw_breakpoint_update_all(cpu); - hw_watchpoint_update_all(cpu); - arm_rebuild_hflags(env); + if (tcg_enabled()) { + hw_breakpoint_update_all(cpu); + hw_watchpoint_update_all(cpu); + + arm_rebuild_hflags(env); + } } #if defined(CONFIG_TCG) && !defined(CONFIG_USER_ONLY) |