Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NEkyt-0008Uq-A9 for qemu-devel@nongnu.org; Sun, 29 Nov 2009 09:42:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NEkyo-0008SP-IV for qemu-devel@nongnu.org; Sun, 29 Nov 2009 09:42:30 -0500 Received: from [199.232.76.173] (port=44749 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEkyo-0008SM-Fs for qemu-devel@nongnu.org; Sun, 29 Nov 2009 09:42:26 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:47572) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NEkyo-0005La-2y for qemu-devel@nongnu.org; Sun, 29 Nov 2009 09:42:26 -0500 Message-Id: <31AD0DD4-C9DD-4E2D-B170-DD5509F856B3@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Qemu-devel] PATCH: Building qemu on OpenSolaris 2009.06 (SPARC) host Date: Sun, 29 Nov 2009 15:42:03 +0100 References: <05379AA9-7848-4BFE-BA2D-D2B4799A0099@web.de> Sender: andreas.faerber@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Palle Lyckegaard Cc: qemu-devel@nongnu.org Am 29.11.2009 um 13:34 schrieb Palle Lyckegaard: > On Sun, 29 Nov 2009, Andreas F=E4rber wrote: > >> >> Not having that v7 dir on amd64 here, did you check whether their =20 >> values are really defined identically? >> If not, it may be necessary to either #undef them first or to =20 >> prefix them with TARGET_ as done for the user emulators... >> > > In which files are TARGET_ examples found (linux-user/strace.c?) Yes, for example. grep -r came up with this line among many others: ./linux-user/x86_64/termbits.h:#define TARGET_TIOCPKT_NOSTOP = 16 I.e. if unavoidable, instead of #define PSR_XXX 123 one might need to =20= #define TARGET_PSR_XXX 123 and change *all* uses of PSR_XXX to =20 TARGET_PSR_XXX, so that Sun's and QEMU's definitions can live side by =20= side. If your approach or #undef works correctly, that would seem less =20= intrusive, therefore my question. Andreas=