From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeXu7-0002Xz-Qh for qemu-devel@nongnu.org; Mon, 20 May 2013 17:46:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeXu3-0005wu-3v for qemu-devel@nongnu.org; Mon, 20 May 2013 17:46:03 -0400 Received: from cantor2.suse.de ([195.135.220.15]:33122 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeXu2-0005wh-Tb for qemu-devel@nongnu.org; Mon, 20 May 2013 17:45:59 -0400 Message-ID: <519A9992.6090000@suse.de> Date: Mon, 20 May 2013 23:45:54 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1369070603-26778-1-git-send-email-pbonzini@redhat.com> <519A8E49.5090100@suse.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH 0/4] build: TARGET_ARCH/ARCH2/TYPE simplification List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , qemu-devel@nongnu.org Am 20.05.2013 23:33, schrieb Peter Maydell: > On 20 May 2013 21:57, Andreas F=C3=A4rber wrote: >> Am 20.05.2013 19:23, schrieb Paolo Bonzini: >> Add to that >> >> - TARGET_BASE_ARCH in Makefile.target is assumed to be the name of the >> target-* subdirectory, but this will not always be desirable. >=20 > Isn't it the name of the target-* subdirectory by definition? > (ie we need to be able to set that somehow if you have a subarch > that's piggybacking on another subarch, and this is how we set it). The base architecture is by definition the architecture another one is basing on. The base architecture's define is present for all derived ones (e.g., TARGET_PPC for TARGET_PPC64). >> For a long time already I have been carrying the following patch >> introducing TARGET_ARCH_DIR: >> https://github.com/afaerber/qemu-rl78/commit/9eddd60dae6603235fddf9070= c73e5bf65edf292 >> >> Still need to rebase that, but it looks as if there are no conflicts >> with your series. >=20 > It seems to me that if you're going to put the source code in > the target-rl78 directory you should make rl78 the > TARGET_BASE_ARCH. Alternatively call the directory target-78k0 > if you want the TARGET_BASE_ARCH to be 78k0. I tried that and it is awful for two reasons: * 78k0 is not a valid identifier in C, so I can't write 78k0_cpu_foo. * I only care about implementing RL78 but I know it has a documented base architecture of 78K/0 that I would like to mark up to avoid the issues we have with implementing older ARM versions after the fact. Ties in with the topic of whether to autogenerate the default targets. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg