aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2022-12-09 14:47:52 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-02-27 22:29:01 +0100
commit2609ec2868e6c286e755a73b4504714a0296aba3 (patch)
treefee76fef4553db8adccb0a1a55999abb8ff857ef /include/hw
parentfeea81d8de5c2c5374ab77ab963fa8c045b9fa4e (diff)
downloadqemu-2609ec2868e6c286e755a73b4504714a0296aba3.zip
qemu-2609ec2868e6c286e755a73b4504714a0296aba3.tar.gz
qemu-2609ec2868e6c286e755a73b4504714a0296aba3.tar.bz2
softmmu: Extract watchpoint API from physmem.c
The watchpoint API is specific to TCG system emulation. Move it to a new compile unit. The inlined stubs are used for user-mode and non-TCG accelerators. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20221209141254.68662-1-philmd@linaro.org>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/core/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
index 671f041..5b2792d 100644
--- a/include/hw/core/cpu.h
+++ b/include/hw/core/cpu.h
@@ -946,7 +946,7 @@ static inline bool cpu_breakpoint_test(CPUState *cpu, vaddr pc, int mask)
return false;
}
-#ifdef CONFIG_USER_ONLY
+#if !defined(CONFIG_TCG) || defined(CONFIG_USER_ONLY)
static inline int cpu_watchpoint_insert(CPUState *cpu, vaddr addr, vaddr len,
int flags, CPUWatchpoint **watchpoint)
{