diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-06-30 11:33:53 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-04 12:08:19 +0200 |
| commit | c4b231cbd3198a05bcaaef5c0a6ee3ecebd12e21 (patch) | |
| tree | f17a0abde7c147d4225ae476f7c8597d0b816805 /accel/hvf/hvf-all.c | |
| parent | 0175310c385628de25a09905cb4bb35c2cd47d5f (diff) | |
| download | focaccia-qemu-c4b231cbd3198a05bcaaef5c0a6ee3ecebd12e21.tar.gz focaccia-qemu-c4b231cbd3198a05bcaaef5c0a6ee3ecebd12e21.zip | |
accel/hvf: Move per-cpu method declarations to hvf-accel-ops.c
hvf-all.c aims to contain the generic accel methods (TYPE_ACCEL), while hvf-accel-ops.c the per-vcpu methods (TYPE_ACCEL_OPS). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20250703173248.44995-16-philmd@linaro.org>
Diffstat (limited to 'accel/hvf/hvf-all.c')
| -rw-r--r-- | accel/hvf/hvf-all.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/accel/hvf/hvf-all.c b/accel/hvf/hvf-all.c index 8c387fda24..1c72c43ddb 100644 --- a/accel/hvf/hvf-all.c +++ b/accel/hvf/hvf-all.c @@ -41,31 +41,3 @@ void assert_hvf_ok_impl(hv_return_t ret, const char *file, unsigned int line, abort(); } - -struct hvf_sw_breakpoint *hvf_find_sw_breakpoint(CPUState *cpu, vaddr pc) -{ - struct hvf_sw_breakpoint *bp; - - QTAILQ_FOREACH(bp, &hvf_state->hvf_sw_breakpoints, entry) { - if (bp->pc == pc) { - return bp; - } - } - return NULL; -} - -int hvf_sw_breakpoints_active(CPUState *cpu) -{ - return !QTAILQ_EMPTY(&hvf_state->hvf_sw_breakpoints); -} - -static void do_hvf_update_guest_debug(CPUState *cpu, run_on_cpu_data arg) -{ - hvf_arch_update_guest_debug(cpu); -} - -int hvf_update_guest_debug(CPUState *cpu) -{ - run_on_cpu(cpu, do_hvf_update_guest_debug, RUN_ON_CPU_NULL); - return 0; -} |