From patchwork Fri Oct 22 18:27:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?Q?Llu=C3=ADs?= X-Patchwork-Id: 68897 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C0475B70CB for ; Sat, 23 Oct 2010 05:31:23 +1100 (EST) Received: from localhost ([127.0.0.1]:43871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9MOd-0000ND-Nu for incoming@patchwork.ozlabs.org; Fri, 22 Oct 2010 14:31:19 -0400 Received: from [140.186.70.92] (port=51810 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9MMm-0008JB-M3 for qemu-devel@nongnu.org; Fri, 22 Oct 2010 14:29:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9MMl-0006qY-FN for qemu-devel@nongnu.org; Fri, 22 Oct 2010 14:29:24 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:41934 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P9MMl-0006qO-0r for qemu-devel@nongnu.org; Fri, 22 Oct 2010 14:29:23 -0400 Received: (qmail invoked by alias); 22 Oct 2010 18:29:20 -0000 Received: from unknown (EHLO localhost) [84.88.53.92] by mail.gmx.net (mp055) with SMTP; 22 Oct 2010 20:29:20 +0200 X-Authenticated: #12333383 X-Provags-ID: V01U2FsdGVkX1+xNp1l39+xvs4ILbP6/6LRYmLNfGTGs3XO6sg1MY pmZA2bsbGTQd4p From: xscript@gmx.net (=?utf-8?Q?Llu=C3=ADs?=) To: qemu-devel@nongnu.org Date: Fri, 22 Oct 2010 20:27:34 +0200 Message-ID: <87lj5qf5gp.fsf@ginnungagap.bsc.es> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH] Use '_raw' memory access primitives X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Using a pointer on the host should not go through lduw. Signed-off-by: LluĂ­s Vilanova --- linux-user/signal.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 77683f7..097da9d 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -982,8 +982,8 @@ restore_sigcontext(CPUX86State *env, struct target_sigcontext *sc, int *peax) env->regs[R_ECX] = tswapl(sc->ecx); env->eip = tswapl(sc->eip); - cpu_x86_load_seg(env, R_CS, lduw(&sc->cs) | 3); - cpu_x86_load_seg(env, R_SS, lduw(&sc->ss) | 3); + cpu_x86_load_seg(env, R_CS, lduw_raw(&sc->cs) | 3); + cpu_x86_load_seg(env, R_SS, lduw_raw(&sc->ss) | 3); tmpflags = tswapl(sc->eflags); env->eflags = (env->eflags & ~0x40DD5) | (tmpflags & 0x40DD5);