Received: from eggs.gnu.org ([208.118.235.92]:52790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG1dq-00015A-9o for qemu-devel@nongnu.org; Thu, 14 Mar 2013 02:27:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UG1dm-0000FE-Im for qemu-devel@nongnu.org; Thu, 14 Mar 2013 02:27:54 -0400 Date: Thu, 14 Mar 2013 14:27:38 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Message-ID: <20130314062738.GA25684@cs.nctu.edu.tw> References: <20130307033301.GA48996@cs.nctu.edu.tw> <20130308092102.GD9597@stefanha-thinkpad.redhat.com> <20130308101324.GA32107@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20130308101324.GA32107@stefanha-thinkpad.redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] Use proper term in TCG README List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-trivial@nongnu.org, Peter Maydell , qemu-devel@nongnu.org, =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= On Fri, Mar 08, 2013 at 11:13:24AM +0100, Stefan Hajnoczi wrote: > On Fri, Mar 08, 2013 at 05:29:29PM +0800, Peter Maydell wrote: > > On 8 March 2013 17:21, Stefan Hajnoczi wrote: > > > On Thu, Mar 07, 2013 at 11:33:01AM +0800, =E9=99=B3=E9=9F=8B=E4=BB=BB= (Wei-Ren Chen) wrote: > > >> In TCG, "target" means the host architecture for which TCG gener= ates the > > >> code. Using "guest" rather than "target" to make the document more= consistent. > >=20 > > >> @@ -379,7 +379,7 @@ double-word product T0. The later is returned= in two single-word outputs. > > >> > > >> Similar to mulu2, except the two inputs T1 and T2 are signed. > > >> > > >> -********* 64-bit target on 32-bit host support > > >> +********* 64-bit guest on 32-bit host support > > >> > > >> The following opcodes are internal to TCG. Thus they are to be i= mplemented by > > >> 32-bit host code generators, but are not to be emitted by guest t= ranslators. > > > > > > Review from TCG experts please. > > > > > > It seems we have multiple meanings for "target" (e.g. ./configure > > > --target-list=3D does not mean "the host architecture for which TCG > > > generates code"), if this is really the way TCG uses the term then = fine. > >=20 > > Yes, this is an unfortunate terminology clash, but in a TCG context > > 'target' does mean 'host architecture which the backend compiles for' > > (see the tcg/README definition in section 2). This is partly because > > of TCG's history as a C compiler backend, where 'target' is unambiguo= us > > and may be different from the 'host' architecture the compiler itself > > executes on. > >=20 > > There are several places in tcg/README which use 'target' in the > > sense 'QEMU target, ie guest' (as well as lots of uses in the > > 'TCG target, ie host' sense), not just this one; it might be a good > > idea to put a note in the Definitions section that this document uses > > 'guest' when it means what in other areas of QEMU is often referred t= o > > as the 'target', and fix the places where we've accidentally used 'ta= rget' > > and 'guest would be better. >=20 > Wei-Ren, can you please convert the other instances in tcg/README where > 'target' is used in the 'guest' sense, too? I will look into the tcg/README again. :) Regards, chenwj=20 --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj