From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMPsx-0007Uz-K4 for qemu-devel@nongnu.org; Fri, 13 Feb 2015 18:43:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMPss-0000yY-L1 for qemu-devel@nongnu.org; Fri, 13 Feb 2015 18:42:59 -0500 Received: from out1134-202.mail.aliyun.com ([42.120.134.202]:38005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMPss-0000we-9c for qemu-devel@nongnu.org; Fri, 13 Feb 2015 18:42:54 -0500 Message-ID: <54DE8DCA.6030302@sunrus.com.cn> Date: Sat, 14 Feb 2015 07:50:34 +0800 From: Chen Gang S MIME-Version: 1.0 References: <54DD17BC.5040006@sunrus.com.cn> <54DD180B.3080004@sunrus.com.cn> In-Reply-To: <54DD180B.3080004@sunrus.com.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/5] target-tile: Firstly add to qemu with minimized features List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Riku Voipio , Chris Metcalf , "walt@tilera.com" Cc: qemu-devel On 2/13/15 05:15, Chen Gang S wrote: > It almost likes a template for adding an architecture target. > > Signed-off-by: Chen Gang > --- > configure | 7 ++ > default-configs/tilegx-linux-user.mak | 1 + > target-tile/Makefile.objs | 1 + > target-tile/cpu-qom.h | 72 +++++++++++++++ > target-tile/cpu.c | 159 ++++++++++++++++++++++++++++++++++ > target-tile/cpu.h | 84 ++++++++++++++++++ > target-tile/helper.h | 0 > target-tile/translate.c | 54 ++++++++++++ > 8 files changed, 378 insertions(+) > create mode 100644 default-configs/tilegx-linux-user.mak > create mode 100644 target-tile/Makefile.objs > create mode 100644 target-tile/cpu-qom.h > create mode 100644 target-tile/cpu.c > create mode 100644 target-tile/cpu.h > create mode 100644 target-tile/helper.h > create mode 100644 target-tile/translate.c > > diff --git a/configure b/configure > index 7ba4bcb..ffb4d56 100755 > --- a/configure > +++ b/configure > @@ -5191,6 +5191,9 @@ case "$target_name" in > s390x) > gdb_xml_files="s390x-core64.xml s390-acr.xml s390-fpr.xml" > ;; > + tilegx) > + TARGET_ARCH=tile > + ;; Oh, it needs to use "TARGET_ARCH=tilegx" instead of "TARGET_ARCH=tile", or can not put "CONFIG_TILE_DIS=y" to config-all-disas.mak, below (when I am adding "disas/tilegx.c", I meet it). > unicore32) > ;; > xtensa|xtensaeb) > @@ -5363,6 +5366,10 @@ for i in $ARCH $TARGET_BASE_ARCH ; do > echo "CONFIG_SPARC_DIS=y" >> $config_target_mak > echo "CONFIG_SPARC_DIS=y" >> config-all-disas.mak > ;; > + tilegx*) > + echo "CONFIG_TILE_DIS=y" >> $config_target_mak > + echo "CONFIG_TILE_DIS=y" >> config-all-disas.mak > + ;; > xtensa*) > echo "CONFIG_XTENSA_DIS=y" >> $config_target_mak > echo "CONFIG_XTENSA_DIS=y" >> config-all-disas.mak [...] Thanks. -- Chen Gang Open, share, and attitude like air, water, and life which God blessed