From patchwork Tue Feb 16 22:23:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 45824 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 44B1BB7D5E for ; Fri, 19 Feb 2010 10:02:47 +1100 (EST) Received: from localhost ([127.0.0.1]:47841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiFLb-0008Eh-0s for incoming@patchwork.ozlabs.org; Thu, 18 Feb 2010 17:59:51 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NiF9L-0004SU-GE for qemu-devel@nongnu.org; Thu, 18 Feb 2010 17:47:11 -0500 Received: from [199.232.76.173] (port=59364 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiF9J-0004Qx-3Y for qemu-devel@nongnu.org; Thu, 18 Feb 2010 17:47:09 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NiF9F-00013U-Rv for qemu-devel@nongnu.org; Thu, 18 Feb 2010 17:47:08 -0500 Received: from are.twiddle.net ([75.149.56.221]:41203) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NiF9F-00013J-62 for qemu-devel@nongnu.org; Thu, 18 Feb 2010 17:47:05 -0500 Received: by are.twiddle.net (Postfix, from userid 5000) id 7CBF1EF7; Thu, 18 Feb 2010 14:47:01 -0800 (PST) Message-Id: <55bb957054ea588d9647b2fe99421eaf7ddaef24.1266533097.git.rth@twiddle.net> In-Reply-To: References: From: Richard Henderson Date: Tue, 16 Feb 2010 14:23:39 -0800 To: qemu-devel@nongnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: blauwirbel@gmail.com Subject: [Qemu-devel] [PATCH 6/7] tcg-sparc: Implement ORC. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Richard Henderson --- tcg/sparc/tcg-target.c | 5 +++++ tcg/sparc/tcg-target.h | 2 ++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c index 1ea474d..891b8c4 100644 --- a/tcg/sparc/tcg-target.c +++ b/tcg/sparc/tcg-target.c @@ -1223,6 +1223,9 @@ static inline void tcg_out_op(TCGContext *s, int opc, const TCGArg *args, OP_32_64(or): c = ARITH_OR; goto gen_arith; + OP_32_64(orc): + c = ARITH_ORN; + goto gen_arith; OP_32_64(xor): c = ARITH_XOR; goto gen_arith; @@ -1442,6 +1445,7 @@ static const TCGTargetOpDef sparc_op_defs[] = { { INDEX_op_and_i32, { "r", "r", "rJ" } }, { INDEX_op_andc_i32, { "r", "r", "rJ" } }, { INDEX_op_or_i32, { "r", "r", "rJ" } }, + { INDEX_op_orc_i32, { "r", "r", "rJ" } }, { INDEX_op_xor_i32, { "r", "r", "rJ" } }, { INDEX_op_shl_i32, { "r", "r", "rJ" } }, @@ -1500,6 +1504,7 @@ static const TCGTargetOpDef sparc_op_defs[] = { { INDEX_op_and_i64, { "r", "r", "rJ" } }, { INDEX_op_andc_i64, { "r", "r", "rJ" } }, { INDEX_op_or_i64, { "r", "r", "rJ" } }, + { INDEX_op_orc_i64, { "r", "r", "rJ" } }, { INDEX_op_xor_i64, { "r", "r", "rJ" } }, { INDEX_op_shl_i64, { "r", "r", "rJ" } }, diff --git a/tcg/sparc/tcg-target.h b/tcg/sparc/tcg-target.h index 4ea0c19..dc68787 100644 --- a/tcg/sparc/tcg-target.h +++ b/tcg/sparc/tcg-target.h @@ -94,6 +94,7 @@ enum { #define TCG_TARGET_HAS_neg_i32 #define TCG_TARGET_HAS_not_i32 #define TCG_TARGET_HAS_andc_i32 +#define TCG_TARGET_HAS_orc_i32 #if TCG_TARGET_REG_BITS == 64 #define TCG_TARGET_HAS_ext32s_i64 @@ -101,6 +102,7 @@ enum { #define TCG_TARGET_HAS_neg_i64 #define TCG_TARGET_HAS_not_i64 #define TCG_TARGET_HAS_andc_i64 +#define TCG_TARGET_HAS_orc_i64 #endif //#define TCG_TARGET_HAS_bswap32_i32