diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-07-24 13:59:40 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-07-30 14:00:11 +0200 |
commit | 1d3db6bdbb0b541744cc9e008371ec7a37986d8a (patch) | |
tree | 429888e80132821ef356f91cd0654457c877a70c /target/i386/smm_helper.c | |
parent | 990e0be2603511560168e1ad61f68294d951c39e (diff) | |
download | qemu-1d3db6bdbb0b541744cc9e008371ec7a37986d8a.zip qemu-1d3db6bdbb0b541744cc9e008371ec7a37986d8a.tar.gz qemu-1d3db6bdbb0b541744cc9e008371ec7a37986d8a.tar.bz2 |
i386: implement MSR_SMI_COUNT for TCG
This is trivial, so just do it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/smm_helper.c')
-rw-r--r-- | target/i386/smm_helper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/i386/smm_helper.c b/target/i386/smm_helper.c index 90621e5..c1c34a7 100644 --- a/target/i386/smm_helper.c +++ b/target/i386/smm_helper.c @@ -54,6 +54,7 @@ void do_smm_enter(X86CPU *cpu) qemu_log_mask(CPU_LOG_INT, "SMM: enter\n"); log_cpu_state_mask(CPU_LOG_INT, CPU(cpu), CPU_DUMP_CCOP); + env->msr_smi_count++; env->hflags |= HF_SMM_MASK; if (env->hflags2 & HF2_NMI_MASK) { env->hflags2 |= HF2_SMM_INSIDE_NMI_MASK; |