From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJQlw-00081Z-OL for qemu-devel@nongnu.org; Wed, 24 Jun 2009 07:36:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJQlr-00080S-BT for qemu-devel@nongnu.org; Wed, 24 Jun 2009 07:36:11 -0400 Received: from [199.232.76.173] (port=38427 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJQlr-00080O-1z for qemu-devel@nongnu.org; Wed, 24 Jun 2009 07:36:07 -0400 Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]:43893) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJQlq-0001zQ-Fv for qemu-devel@nongnu.org; Wed, 24 Jun 2009 07:36:06 -0400 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090624113601.CTEH6611.mtaout02-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Wed, 24 Jun 2009 12:36:01 +0100 Received: from miranda.arrow ([213.107.24.213]) by aamtaout02-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090624113601.BGJD21638.aamtaout02-winn.ispmail.ntl.com@miranda.arrow> for ; Wed, 24 Jun 2009 12:36:01 +0100 Received: from sdb by miranda.arrow with local (Exim 4.63) (envelope-from ) id 1MJQlf-0002XY-N7 for qemu-devel@nongnu.org; Wed, 24 Jun 2009 12:35:55 +0100 Date: Wed, 24 Jun 2009 12:35:55 +0100 From: Stuart Brady Subject: Re: [Qemu-devel] How to port qemu-0.10.x to alpha host? Message-ID: <20090624113555.GA9725@miranda.arrow> References: <5355faa0906232124g5bdb8f4eiea6276ac642d4014@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5355faa0906232124g5bdb8f4eiea6276ac642d4014@mail.gmail.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, Jun 24, 2009 at 12:24:17PM +0800, linu king wrote: > what should i do if i wanna port qemu-0.10.x to a new host (e.g., > alpha), suppose the target is x86, is it enough just adding a direcory named > tcg/alpha and implementing two files, tcg-target.c and tcg-target.h, inside > it. anything else to do ? it will be of great help if anyone can give me a > complete roadmap or steps about qemu-0.10.x porting. That's pretty much it. For Alpha, the configure script and makefiles appear to have been already taken care of. The easiest approach would be to look at other targets, and see how they work. You needn't bother implementing those ops that correspond to TCG_TARGET_HAS_* definitions (see */tcg-target.h), and it would probably be best to implement TCG ops only with the tightest possible constraints at first (i.e. register operands only for all ops except qemu_{ld,st}*). tcg/README documents most of what you should need. Cheers, -- Stuart Brady