projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4995805
)
target/i386/svm_helper: eliminate duplicate local variable
author
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 25 Sep 2023 10:20:06 +0000
(12:20 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 26 Sep 2023 14:41:49 +0000
(16:41 +0200)
This shadows an outer "cs" variable that is initialized to the
same expression.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/sysemu/svm_helper.c
patch
|
blob
|
history
diff --git
a/target/i386/tcg/sysemu/svm_helper.c
b/target/i386/tcg/sysemu/svm_helper.c
index 2d27731b608ee3913ed08c7714d081d25c3d0074..32ff0dbb13c071a869f880e2ba8124561e8bb9f6 100644
(file)
--- a/
target/i386/tcg/sysemu/svm_helper.c
+++ b/
target/i386/tcg/sysemu/svm_helper.c
@@
-387,8
+387,6
@@
void helper_vmrun(CPUX86State *env, int aflag, int next_eip_addend)
env->hflags2 |= HF2_GIF_MASK;
if (ctl_has_irq(env)) {
- CPUState *cs = env_cpu(env);
-
cs->interrupt_request |= CPU_INTERRUPT_VIRQ;
}