diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2022-12-09 14:47:52 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:01 +0100 |
commit | 2609ec2868e6c286e755a73b4504714a0296aba3 (patch) | |
tree | fee76fef4553db8adccb0a1a55999abb8ff857ef /include/hw | |
parent | feea81d8de5c2c5374ab77ab963fa8c045b9fa4e (diff) | |
download | qemu-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.h | 2 |
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) { |