diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-10-18 14:35:23 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-10-19 13:44:04 +0200 |
commit | b31c003895b030bea1319037d6bec976d47d9020 (patch) | |
tree | 478fe9cdbd9c805e33445ea28e67db42763f402c /target/i386 | |
parent | e81f86790f561437b70549aff05433731b464e62 (diff) | |
download | qemu-b31c003895b030bea1319037d6bec976d47d9020.zip qemu-b31c003895b030bea1319037d6bec976d47d9020.tar.gz qemu-b31c003895b030bea1319037d6bec976d47d9020.tar.bz2 |
target-i386: kvm: do not initialize padding fields
The exception.pad field is going to be renamed to pending in an upcoming
header file update. Remove the unnecessary initialization; it was
introduced to please valgrind (commit 7e680753cfa2) but they were later
rendered unnecessary by commit 076796f8fd27f4d, which added the "= {}"
initializer to the declaration of "events". Therefore the patch does
not change behavior in any way.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386')
-rw-r--r-- | target/i386/kvm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/target/i386/kvm.c b/target/i386/kvm.c index dc4047b..302f420 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -2686,7 +2686,6 @@ static int kvm_put_vcpu_events(X86CPU *cpu, int level) events.exception.nr = env->exception_injected; events.exception.has_error_code = env->has_error_code; events.exception.error_code = env->error_code; - events.exception.pad = 0; events.interrupt.injected = (env->interrupt_injected >= 0); events.interrupt.nr = env->interrupt_injected; @@ -2695,7 +2694,6 @@ static int kvm_put_vcpu_events(X86CPU *cpu, int level) events.nmi.injected = env->nmi_injected; events.nmi.pending = env->nmi_pending; events.nmi.masked = !!(env->hflags2 & HF2_NMI_MASK); - events.nmi.pad = 0; events.sipi_vector = env->sipi_vector; events.flags = 0; |