From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33462 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3uJS-000549-Cz for qemu-devel@nongnu.org; Thu, 07 Oct 2010 13:31:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3uBA-0001OL-Q1 for qemu-devel@nongnu.org; Thu, 07 Oct 2010 13:22:53 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:37154 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P3uBA-0001OB-De for qemu-devel@nongnu.org; Thu, 07 Oct 2010 13:22:52 -0400 From: xscript@gmx.net (=?utf-8?Q?Llu=C3=ADs?=) Date: Thu, 07 Oct 2010 19:20:18 +0200 Message-ID: <874ocxzzql.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] Use '_raw' memory access primitives. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Using a pointer on the host should not go through lduw. Signed-off-by: Llu=C3=ADs --- 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_sigc= ontext *sc, int *peax) env->regs[R_ECX] =3D tswapl(sc->ecx); env->eip =3D tswapl(sc->eip); =20 - 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); =20 tmpflags =3D tswapl(sc->eflags); env->eflags =3D (env->eflags & ~0x40DD5) | (tmpflags & 0x40DD5); --=20 1.7.1 --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth