mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
target/arm: Wrap breakpoint/watchpoint updates with tcg_enabled
This is in preparation for restricting compilation of some parts of debug_helper.c to TCG only. Signed-off-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
committed by
Peter Maydell
parent
212154821e
commit
fa05d1abb9
@@ -2,6 +2,7 @@
|
||||
#include "cpu.h"
|
||||
#include "qemu/error-report.h"
|
||||
#include "sysemu/kvm.h"
|
||||
#include "sysemu/tcg.h"
|
||||
#include "kvm_arm.h"
|
||||
#include "internals.h"
|
||||
#include "migration/cpu.h"
|
||||
@@ -848,8 +849,10 @@ static int cpu_post_load(void *opaque, int version_id)
|
||||
return -1;
|
||||
}
|
||||
|
||||
hw_breakpoint_update_all(cpu);
|
||||
hw_watchpoint_update_all(cpu);
|
||||
if (tcg_enabled()) {
|
||||
hw_breakpoint_update_all(cpu);
|
||||
hw_watchpoint_update_all(cpu);
|
||||
}
|
||||
|
||||
/*
|
||||
* TCG gen_update_fp_context() relies on the invariant that
|
||||
|
||||
Reference in New Issue
Block a user