[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 29/31] accel/tcg: Inline need_replay_interrupt
From: |
Richard Henderson |
Subject: |
[PULL 29/31] accel/tcg: Inline need_replay_interrupt |
Date: |
Tue, 30 Jan 2024 09:01:19 +1000 |
The function is now trivial, and with inlining we can
re-use the calling function's tcg_ops variable.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
accel/tcg/cpu-exec.c | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c
index 2eacd694ea..75f7ba7bed 100644
--- a/accel/tcg/cpu-exec.c
+++ b/accel/tcg/cpu-exec.c
@@ -765,20 +765,6 @@ static inline bool cpu_handle_exception(CPUState *cpu, int
*ret)
return false;
}
-#ifndef CONFIG_USER_ONLY
-/*
- * CPU_INTERRUPT_POLL is a virtual event which gets converted into a
- * "real" interrupt event later. It does not need to be recorded for
- * replay purposes.
- */
-static inline bool need_replay_interrupt(CPUState *cpu, int interrupt_request)
-{
- const TCGCPUOps *tcg_ops = cpu->cc->tcg_ops;
- return !tcg_ops->need_replay_interrupt
- || tcg_ops->need_replay_interrupt(interrupt_request);
-}
-#endif /* !CONFIG_USER_ONLY */
-
static inline bool icount_exit_request(CPUState *cpu)
{
if (!icount_enabled()) {
@@ -862,7 +848,8 @@ static inline bool cpu_handle_interrupt(CPUState *cpu,
if (tcg_ops->cpu_exec_interrupt &&
tcg_ops->cpu_exec_interrupt(cpu, interrupt_request)) {
- if (need_replay_interrupt(cpu, interrupt_request)) {
+ if (!tcg_ops->need_replay_interrupt ||
+ tcg_ops->need_replay_interrupt(interrupt_request)) {
replay_interrupt();
}
/*
--
2.34.1
- [PULL 15/31] target: Make qemu_target_page_mask() available for *-user, (continued)
- [PULL 15/31] target: Make qemu_target_page_mask() available for *-user, Richard Henderson, 2024/01/29
- [PULL 16/31] accel/tcg: Make use of qemu_target_page_mask() in perf.c, Richard Henderson, 2024/01/29
- [PULL 17/31] tcg: Make tb_cflags() usable from target-agnostic code, Richard Henderson, 2024/01/29
- [PULL 19/31] accel/tcg: Move perf and debuginfo support to tcg/, Richard Henderson, 2024/01/29
- [PULL 21/31] accel/tcg: Rename tcg_cpus_destroy() -> tcg_cpu_destroy(), Richard Henderson, 2024/01/29
- [PULL 18/31] accel/tcg: Remove #ifdef TARGET_I386 from perf.c, Richard Henderson, 2024/01/29
- [PULL 20/31] accel/tcg: Rename tcg_ss[] -> tcg_specific_ss[] in meson, Richard Henderson, 2024/01/29
- [PULL 25/31] target/loongarch: Constify loongarch_tcg_ops, Richard Henderson, 2024/01/29
- [PULL 28/31] target/i386: Extract x86_need_replay_interrupt() from accel/tcg/, Richard Henderson, 2024/01/29
- [PULL 22/31] accel/tcg: Rename tcg_cpus_exec() -> tcg_cpu_exec(), Richard Henderson, 2024/01/29
- [PULL 29/31] accel/tcg: Inline need_replay_interrupt,
Richard Henderson <=
- [PULL 24/31] include/qemu: Add TCGCPUOps typedef to typedefs.h, Richard Henderson, 2024/01/29
- [PULL 23/31] accel/tcg: Un-inline icount_exit_request() for clarity, Richard Henderson, 2024/01/29
- [PULL 31/31] target/i386: Extract x86_cpu_exec_halt() from accel/tcg/, Richard Henderson, 2024/01/29
- [PULL 30/31] accel/tcg: Introduce TCGCPUOps::cpu_exec_halt() handler, Richard Henderson, 2024/01/29
- [PULL 26/31] accel/tcg: Use CPUState.cc instead of CPU_GET_CLASS in cpu-exec.c, Richard Henderson, 2024/01/29
- [PULL 27/31] accel/tcg: Introduce TCGCPUOps::need_replay_interrupt() handler, Richard Henderson, 2024/01/29
- Re: [PULL 00/31] tcg patch queue, Peter Maydell, 2024/01/31