mirror of https://github.com/xemu-project/xemu.git
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 (commit7e680753cf
) but they were later rendered unnecessary by commit076796f8fd
, 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>
This commit is contained in:
parent
e81f86790f
commit
b31c003895
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue