From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um72q-0005Mo-4j for qemu-devel@nongnu.org; Mon, 10 Jun 2013 14:42:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Um72m-0001jY-W0 for qemu-devel@nongnu.org; Mon, 10 Jun 2013 14:42:20 -0400 Received: from mail-qe0-f42.google.com ([209.85.128.42]:51677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um72m-0001jR-Su for qemu-devel@nongnu.org; Mon, 10 Jun 2013 14:42:16 -0400 Received: by mail-qe0-f42.google.com with SMTP id s14so4346441qeb.1 for ; Mon, 10 Jun 2013 11:42:16 -0700 (PDT) Sender: Richard Henderson Message-ID: <51B61E01.5090703@twiddle.net> Date: Mon, 10 Jun 2013 11:42:09 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1370541947-909-1-git-send-email-rth@twiddle.net> In-Reply-To: <1370541947-909-1-git-send-email-rth@twiddle.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/5] tcg-arm: Runtime detection of architecture List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net Ping. On 06/06/2013 11:05 AM, Richard Henderson wrote: > Two prepatory generic tcg patches, to allow non-constant values for > the various TCG_TARGET_HAS_foo macros. > > When in patch 3 this gets used, the code inlined in the translators > will be able to check the relevant variable and emit either division > opcode or the call to the division subroutine. > > Perhaps more valuable is being able to generate armv7 insns when > running on e.g. an cortex-a15, even when the OS distribution is > built for a more generic armv5. > > Tested on an a15, and with various hacks to force each of the unused > code paths to be used. > > > r~ > > > Richard Henderson (5): > tcg: Allow non-constant control macros > tcg: Simplify logic using TCG_OPF_NOT_PRESENT > tcg-arm: Make use of conditional availability of opcodes for divide > tcg-arm: Simplify logic in detecting the ARM ISA in use > tcg-arm: Use AT_PLATFORM to detect the host ISA > > tcg/arm/tcg-target.c | 82 +++++++++++++++++++++++++++------------------------- > tcg/arm/tcg-target.h | 14 +++++---- > tcg/tcg-opc.h | 28 ++++++++++-------- > tcg/tcg.c | 4 +-- > tcg/tcg.h | 3 +- > 5 files changed, 69 insertions(+), 62 deletions(-) >