accel/tcg: Restrict TCGCPUOps::cpu_exec_interrupt() to sysemu
commit77c0fc4e55cd7edf2f109fd5dca2395a1c91e9e7
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 11 Sep 2021 16:54:33 +0000 (11 18:54 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 14 Sep 2021 19:00:21 +0000 (14 12:00 -0700)
tree29259fc35f1d4d72e848d06be48ccc267fc0a60b
parentf364a7f9685732ba236ed268252dcf24926ff26a
accel/tcg: Restrict TCGCPUOps::cpu_exec_interrupt() to sysemu

All targets call TCGCPUOps::cpu_exec_interrupt() from sysemu code.
Move its declaration to restrict it to system emulation.
Extend the code guarded.
Restrict the static inlined need_replay_interrupt() method to
avoid a "defined but not used" warning.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210911165434.531552-24-f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cpu-exec.c
include/hw/core/tcg-cpu-ops.h