diff options
author | liguang <lig.fnst@cn.fujitsu.com> | 2013-05-28 16:21:09 +0800 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2013-06-15 17:50:30 +0000 |
commit | 0bc60a8ae076402fbdbd2d6334bbe6ea88b428ff (patch) | |
tree | 52612400600c1a4258c24a6d38160a65a9d872ad /target-i386/svm_helper.c | |
parent | 80cf2c81a1be732cf1ce4a810ddc7721714d684e (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>
Diffstat (limited to 'target-i386/svm_helper.c')
-rw-r--r-- | target-i386/svm_helper.c | 2 |
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)); |