[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v12 08/23] i386: tcg: remove inline from cpu_load_eflags
From: |
Claudio Fontana |
Subject: |
[PATCH v12 08/23] i386: tcg: remove inline from cpu_load_eflags |
Date: |
Sat, 12 Dec 2020 16:55:15 +0100 |
make it a regular function.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Claudio Fontana <cfontana@suse.de>
---
target/i386/tcg/helper-tcg.h | 15 ++-------------
target/i386/tcg/misc_helper.c | 13 +++++++++++++
2 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/target/i386/tcg/helper-tcg.h b/target/i386/tcg/helper-tcg.h
index 148edf49a3..c133c63555 100644
--- a/target/i386/tcg/helper-tcg.h
+++ b/target/i386/tcg/helper-tcg.h
@@ -78,19 +78,8 @@ void QEMU_NORETURN raise_interrupt(CPUX86State *nenv, int
intno, int is_int,
/* cc_helper.c */
extern const uint8_t parity_table[256];
-/*
- * NOTE: the translator must set DisasContext.cc_op to CC_OP_EFLAGS
- * after generating a call to a helper that uses this.
- */
-static inline void cpu_load_eflags(CPUX86State *env, int eflags,
- int update_mask)
-{
- CC_SRC = eflags & (CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C);
- CC_OP = CC_OP_EFLAGS;
- env->df = 1 - (2 * ((eflags >> 10) & 1));
- env->eflags = (env->eflags & ~update_mask) |
- (eflags & update_mask) | 0x2;
-}
+/* misc_helper.c */
+void cpu_load_eflags(CPUX86State *env, int eflags, int update_mask);
/* svm_helper.c */
void QEMU_NORETURN cpu_vmexit(CPUX86State *nenv, uint32_t exit_code,
diff --git a/target/i386/tcg/misc_helper.c b/target/i386/tcg/misc_helper.c
index c99370e5e3..0bd6c95749 100644
--- a/target/i386/tcg/misc_helper.c
+++ b/target/i386/tcg/misc_helper.c
@@ -26,6 +26,19 @@
#include "exec/address-spaces.h"
#include "helper-tcg.h"
+/*
+ * NOTE: the translator must set DisasContext.cc_op to CC_OP_EFLAGS
+ * after generating a call to a helper that uses this.
+ */
+void cpu_load_eflags(CPUX86State *env, int eflags, int update_mask)
+{
+ CC_SRC = eflags & (CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C);
+ CC_OP = CC_OP_EFLAGS;
+ env->df = 1 - (2 * ((eflags >> 10) & 1));
+ env->eflags = (env->eflags & ~update_mask) |
+ (eflags & update_mask) | 0x2;
+}
+
void helper_outb(CPUX86State *env, uint32_t port, uint32_t data)
{
#ifdef CONFIG_USER_ONLY
--
2.26.2
- [PATCH v12 11/23] tcg: Make CPUClass.debug_excp_handler optional, (continued)
- [PATCH v12 20/23] target/arm: do not use cc->do_interrupt for KVM directly, Claudio Fontana, 2020/12/12
- [PATCH v12 19/23] cpu: Move debug_excp_handler to tcg_ops, Claudio Fontana, 2020/12/12
- [PATCH v12 09/23] tcg: cpu_exec_{enter,exit} helpers, Claudio Fontana, 2020/12/12
- [PATCH v12 10/23] tcg: make CPUClass.cpu_exec_* optional, Claudio Fontana, 2020/12/12
- [PATCH v12 08/23] i386: tcg: remove inline from cpu_load_eflags,
Claudio Fontana <=
- [PATCH v12 03/23] i386: move hax accel files into hax/, Claudio Fontana, 2020/12/12
- [PATCH v12 22/23] cpu: move cc->transaction_failed to tcg_ops, Claudio Fontana, 2020/12/12
- [PATCH v12 18/23] cpu: Move tlb_fill to tcg_ops, Claudio Fontana, 2020/12/12
- [PATCH v12 23/23] cpu: move do_unaligned_access to tcg_ops, Claudio Fontana, 2020/12/12
- [PATCH v12 13/23] cpu: Introduce TCGCpuOperations struct, Claudio Fontana, 2020/12/12
- [PATCH v12 12/23] cpu: Remove unnecessary noop methods, Claudio Fontana, 2020/12/12
- [PATCH v12 02/23] i386: move whpx accel files into whpx/, Claudio Fontana, 2020/12/12
- [PATCH v12 21/23] cpu: move cc->do_interrupt to tcg_ops, Claudio Fontana, 2020/12/12
- [PATCH v12 07/23] i386: move TCG cpu class initialization to tcg/, Claudio Fontana, 2020/12/12