From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEh9K-0003N8-0w for qemu-devel@nongnu.org; Fri, 04 Jul 2008 05:00:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEh9F-0003Cl-8l for qemu-devel@nongnu.org; Fri, 04 Jul 2008 05:00:13 -0400 Received: from [199.232.76.173] (port=34427 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEh9E-00035t-So for qemu-devel@nongnu.org; Fri, 04 Jul 2008 05:00:09 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:42572) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KEh95-0001SZ-3X for qemu-devel@nongnu.org; Fri, 04 Jul 2008 05:00:00 -0400 Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 77BF7E651551 for ; Fri, 4 Jul 2008 08:05:49 +0200 (CEST) Received: from [88.64.29.116] (helo=[192.168.1.198]) by smtp08.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.109 #226) id 1KEeQX-0003tE-00 for qemu-devel@nongnu.org; Fri, 04 Jul 2008 08:05:49 +0200 Message-ID: <486DBDB1.9070904@web.de> Date: Fri, 04 Jul 2008 08:05:37 +0200 From: Jan Kiszka MIME-Version: 1.0 References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig43159FC60B9A090E1EE7EB1C" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: [4844] Avoid compiler warning. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig43159FC60B9A090E1EE7EB1C Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thiemo Seufer wrote: > Revision: 4844 > http://svn.sv.gnu.org/viewvc/?view=3Drev&root=3Dqemu&revision= =3D4844 > Author: ths > Date: 2008-07-03 21:36:35 +0000 (Thu, 03 Jul 2008) >=20 > Log Message: > ----------- > Avoid compiler warning. >=20 > Modified Paths: > -------------- > trunk/cpu-all.h >=20 > Modified: trunk/cpu-all.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- trunk/cpu-all.h 2008-07-03 19:55:47 UTC (rev 4843) > +++ trunk/cpu-all.h 2008-07-03 21:36:35 UTC (rev 4844) > @@ -667,7 +667,7 @@ > =20 > /* All direct uses of g2h and h2g need to go away for usermode softmmu= =2E */ > #define g2h(x) ((void *)((unsigned long)(x) + GUEST_BASE)) > -#define h2g(x) ((target_ulong)(x - GUEST_BASE)) > +#define h2g(x) ((target_ulong)((unsigned long)(x) - GUEST_BASE)) Just to keep heads up: While this is OK in itself, the potential bug it pointed out is still open, see http://permalink.gmane.org/gmane.comp.emulators.qemu/26687 Jan --------------enig43159FC60B9A090E1EE7EB1C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkhtvbwACgkQniDOoMHTA+kJTwCcDHhYiZiDFYzZbh+5g3OqdhVD 9GwAnjZxjNNszUlV0tY9o+j3w0X2VwGe =TVSH -----END PGP SIGNATURE----- --------------enig43159FC60B9A090E1EE7EB1C--