Received: from eggs.gnu.org ([208.118.235.92]:38977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UU7Ui-0003s0-KT for qemu-devel@nongnu.org; Sun, 21 Apr 2013 23:32:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UU7Uh-0005dw-2D for qemu-devel@nongnu.org; Sun, 21 Apr 2013 23:32:44 -0400 Received: from [222.73.24.84] (port=8870 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UU7Ug-0005bu-O5 for qemu-devel@nongnu.org; Sun, 21 Apr 2013 23:32:42 -0400 From: liguang Date: Mon, 22 Apr 2013 11:30:25 +0800 Message-Id: <1366601426-15301-12-git-send-email-lig.fnst@cn.fujitsu.com> In-Reply-To: <1366601426-15301-1-git-send-email-lig.fnst@cn.fujitsu.com> References: <1366601426-15301-1-git-send-email-lig.fnst@cn.fujitsu.com> Subject: [Qemu-devel] [PATCH 11/12] target-i386/helper: remove redundant env->eip assignment List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, ehabkost@redhat.com, blauwirbel@gmail.com, avi@redhat.com, imammedo@redhat.com, pbonzini@redhat.com, afaerber@suse.de, liguang , rth@twiddle.net Signed-off-by: liguang --- 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 649be02..e18fa35 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)); -- 1.7.2.5