aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliguang <lig.fnst@cn.fujitsu.com>2013-05-28 16:21:09 +0800
committerBlue Swirl <blauwirbel@gmail.com>2013-06-15 17:50:30 +0000
commit0bc60a8ae076402fbdbd2d6334bbe6ea88b428ff (patch)
tree52612400600c1a4258c24a6d38160a65a9d872ad
parent80cf2c81a1be732cf1ce4a810ddc7721714d684e (diff)
target-i386/helper: remove redundant env->eip assignment
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com> Reviewed-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--target-i386/svm_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/svm_helper.c b/target-i386/svm_helper.c
index 649be02613..e18fa35907 100644
--- a/target-i386/svm_helper.c
+++ b/target-i386/svm_helper.c
@@ -249,7 +249,7 @@ void helper_vmrun(CPUX86State *env, int aflag, int next_eip_addend)
R_DS);
env->eip = ldq_phys(env->vm_vmcb + offsetof(struct vmcb, save.rip));
- env->eip = env->eip;
+
env->regs[R_ESP] = ldq_phys(env->vm_vmcb + offsetof(struct vmcb, save.rsp));
env->regs[R_EAX] = ldq_phys(env->vm_vmcb + offsetof(struct vmcb, save.rax));
env->dr[7] = ldq_phys(env->vm_vmcb + offsetof(struct vmcb, save.dr7));