From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkeZV-0001eo-33 for qemu-devel@nongnu.org; Thu, 06 Jun 2013 14:06:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkeZS-0000xl-1g for qemu-devel@nongnu.org; Thu, 06 Jun 2013 14:06:00 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:55412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkeZR-0000xT-ED for qemu-devel@nongnu.org; Thu, 06 Jun 2013 14:05:57 -0400 Received: by mail-pd0-f182.google.com with SMTP id g10so3686724pdj.27 for ; Thu, 06 Jun 2013 11:05:56 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Thu, 6 Jun 2013 11:05:42 -0700 Message-Id: <1370541947-909-1-git-send-email-rth@twiddle.net> Subject: [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 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(-) -- 1.8.1.4