From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYlnQ-0005yu-1a for qemu-devel@nongnu.org; Thu, 08 Dec 2011 16:46:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYlnO-00089D-Si for qemu-devel@nongnu.org; Thu, 08 Dec 2011 16:46:27 -0500 Received: from c.painless.aaisp.net.uk ([81.187.30.53]:59461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYlnO-00088J-OX for qemu-devel@nongnu.org; Thu, 08 Dec 2011 16:46:26 -0500 Received: from zubnet.me.uk ([81.187.243.246] helo=circe) by c.painless.aaisp.net.uk with esmtp (Exim 4.72) (envelope-from ) id 1RYlnD-0003gF-Nu for qemu-devel@nongnu.org; Thu, 08 Dec 2011 21:46:15 +0000 Date: Thu, 8 Dec 2011 21:46:13 +0000 From: Stuart Brady Message-ID: <20111208214613.GA30329@zubnet.me.uk> References: <1323297106-27312-1-git-send-email-sw@weilnetz.de> <20111208070311.GA34443@cs.nctu.edu.tw> <4EE06511.4050306@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4EE06511.4050306@weilnetz.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] tcg: Remove redundant declarations of TCG_TARGET_REG_BITS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Thu, Dec 08, 2011 at 08:19:45AM +0100, Stefan Weil wrote: > Am 08.12.2011 08:03, schrieb =E9=99=B3=E9=9F=8B=E4=BB=BB: > >On Wed, Dec 07, 2011 at 11:31:46PM +0100, Stefan Weil wrote: > >>TCG_TARGET_REG_BITS is declared in tcg.h for all TCG targets. > > > >Just want to make sure. When we talk about target in TCG, that > >_always_ means > >the host, right? > > > >Regards, > >chenwj >=20 > Yes. See file tcg/README which says this: >=20 > The TCG "target" is the architecture for which we generate the > code. It is of course not the same as the "target" of QEMU which is > the emulated architecture. As TCG started as a generic C backend use= d > for cross compiling, it is assumed that the TCG target is different > from the host, although it is never the case for QEMU. ... although that's no longer quite the case when using TCI, as I'm sure you're quite well aware! :-) I suppose when using TCI: * The host is system that QEMU's running on. * The TCG target is the TCI bytecode interpreter. * The QEMU target is whatever you're emulating. ... but of course, the vast majority users do not use TCI (as I think it's mainly intended for development?), so the description in tcg/README is correct in most cases. I suppose it's a bit more complicated than I've described, too, since the TCI interpreter might behave differently depending on the host that you're running on... e.g. TCI will use the same endianness as the host. I'm not sure if it would be worth updating tcg/README along these lines, but the distinction between TCI and the host seems a little murky... Cheers, --=20 Stuart