[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 39/43] target-i386: Change do_smm_enter() argument to
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PULL 39/43] target-i386: Change do_smm_enter() argument to X86CPU |
Date: |
Wed, 10 Jul 2013 16:34:16 +0200 |
Prepares for log_cpu_state_mask() changing argument to CPUState.
Signed-off-by: Andreas Färber <address@hidden>
---
cpu-exec.c | 2 +-
target-i386/cpu.h | 2 +-
target-i386/smm_helper.c | 5 +++--
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/cpu-exec.c b/cpu-exec.c
index 503b103..58a0674 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -331,7 +331,7 @@ int cpu_exec(CPUArchState *env)
cpu_svm_check_intercept_param(env, SVM_EXIT_SMI,
0);
cpu->interrupt_request &= ~CPU_INTERRUPT_SMI;
- do_smm_enter(env);
+ do_smm_enter(x86_env_get_cpu(env));
next_tb = 0;
} else if ((interrupt_request & CPU_INTERRUPT_NMI) &&
!(env->hflags2 & HF2_NMI_MASK)) {
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index 2849672..2d005b3 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -1220,7 +1220,7 @@ void cpu_vmexit(CPUX86State *nenv, uint32_t exit_code,
uint64_t exit_info_1);
/* seg_helper.c */
void do_interrupt_x86_hardirq(CPUX86State *env, int intno, int is_hw);
-void do_smm_enter(CPUX86State *env1);
+void do_smm_enter(X86CPU *cpu);
void cpu_report_tpr_access(CPUX86State *env, TPRAccess access);
diff --git a/target-i386/smm_helper.c b/target-i386/smm_helper.c
index 2489573..78abe5b 100644
--- a/target-i386/smm_helper.c
+++ b/target-i386/smm_helper.c
@@ -24,7 +24,7 @@
#if defined(CONFIG_USER_ONLY)
-void do_smm_enter(CPUX86State *env)
+void do_smm_enter(X86CPU *cpu)
{
}
@@ -40,8 +40,9 @@ void helper_rsm(CPUX86State *env)
#define SMM_REVISION_ID 0x00020000
#endif
-void do_smm_enter(CPUX86State *env)
+void do_smm_enter(X86CPU *cpu)
{
+ CPUX86State *env = &cpu->env;
target_ulong sm_state;
SegmentCache *dt;
int i, offset;
--
1.8.1.4
- [Qemu-devel] [PULL 19/43] target-cris: gen_intermediate_code_internal() should be inlined, (continued)
- [Qemu-devel] [PULL 19/43] target-cris: gen_intermediate_code_internal() should be inlined, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 32/43] target-ppc: Change gen_intermediate_code_internal() argument to PowerPCCPU, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 24/43] target-alpha: Change gen_intermediate_code_internal() argument to AlphaCPU, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 35/43] target-sparc: Change gen_intermediate_code_internal() argument to SPARCCPU, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 21/43] target-microblaze: gen_intermediate_code_internal() should be inlined, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 37/43] target-xtensa: Change gen_intermediate_code_internal() arg to XtensaCPU, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 38/43] target-i386: Change do_interrupt_all() argument to X86CPU, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 41/43] target-i386: Change LOG_PCALL_STATE() argument to CPUState, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 34/43] target-sh4: Change gen_intermediate_code_internal() argument to SuperHCPU, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 42/43] target-ppc: Change LOG_MMU_STATE() argument to CPUState, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 39/43] target-i386: Change do_smm_enter() argument to X86CPU,
Andreas Färber <=
- [Qemu-devel] [PULL 33/43] target-s390x: Change gen_intermediate_code_internal() argument to S390CPU, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 36/43] target-unicore32: Change gen_intermediate_code_internal() signature, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 43/43] cpu: Move reset logging to CPUState, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 40/43] log: Change log_cpu_state[_mask]() argument to CPUState, Andreas Färber, 2013/07/10
- [Qemu-devel] [PULL 09/43] cpu: Make first_cpu and next_cpu CPUState, Andreas Färber, 2013/07/10