From patchwork Thu May 27 20:46:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 53797 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 16FA1B7D1D for ; Fri, 28 May 2010 07:08:48 +1000 (EST) Received: from localhost ([127.0.0.1]:34156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHkIf-0002Ni-TM for incoming@patchwork.ozlabs.org; Thu, 27 May 2010 17:07:33 -0400 Received: from [140.186.70.92] (port=55896 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHjz1-0001xv-IA for qemu-devel@nongnu.org; Thu, 27 May 2010 16:47:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHjz0-0005I6-0E for qemu-devel@nongnu.org; Thu, 27 May 2010 16:47:15 -0400 Received: from are.twiddle.net ([75.149.56.221]:51200) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHjyz-0005Hr-QH for qemu-devel@nongnu.org; Thu, 27 May 2010 16:47:13 -0400 Received: from anchor.twiddle.home (anchor.twiddle.home [172.31.0.4]) by are.twiddle.net (Postfix) with ESMTPS id 34150A60; Thu, 27 May 2010 13:47:13 -0700 (PDT) Received: from anchor.twiddle.home (anchor.twiddle.home [127.0.0.1]) by anchor.twiddle.home (8.14.4/8.14.4) with ESMTP id o4RKlCHW030913; Thu, 27 May 2010 13:47:12 -0700 Received: (from rth@localhost) by anchor.twiddle.home (8.14.4/8.14.4/Submit) id o4RKlB74030912; Thu, 27 May 2010 13:47:11 -0700 From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 27 May 2010 13:46:01 -0700 Message-Id: <1274993204-30766-20-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.0.1 In-Reply-To: <1274993204-30766-1-git-send-email-rth@twiddle.net> References: <1274993204-30766-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: agraf@suse.de, aurelien@aurel32.net Subject: [Qemu-devel] [PATCH 19/62] tcg-s390: Fixup qemu_ld/st opcodes. 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 Implement INDEX_op_qemu_ld32. Fix constraints on qemu_ld64. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index c45d8b5..f21a9ca 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg-target.c @@ -1009,6 +1009,8 @@ static inline void tcg_out_op(TCGContext *s, TCGOpcode opc, tcg_out_qemu_ld(s, args, LD_INT16); break; + case INDEX_op_qemu_ld32: + /* ??? Technically we can use a non-extending instruction. */ case INDEX_op_qemu_ld32u: tcg_out_qemu_ld(s, args, LD_UINT32); break; @@ -1088,10 +1090,13 @@ static const TCGTargetOpDef s390_op_defs[] = { { INDEX_op_qemu_ld16s, { "r", "L" } }, { INDEX_op_qemu_ld32u, { "r", "L" } }, { INDEX_op_qemu_ld32s, { "r", "L" } }, + { INDEX_op_qemu_ld32, { "r", "L" } }, + { INDEX_op_qemu_ld64, { "r", "L" } }, { INDEX_op_qemu_st8, { "L", "L" } }, { INDEX_op_qemu_st16, { "L", "L" } }, { INDEX_op_qemu_st32, { "L", "L" } }, + { INDEX_op_qemu_st64, { "L", "L" } }, #if defined(__s390x__) { INDEX_op_mov_i64, { "r", "r" } }, @@ -1110,9 +1115,6 @@ static const TCGTargetOpDef s390_op_defs[] = { { INDEX_op_st32_i64, { "r", "r" } }, { INDEX_op_st_i64, { "r", "r" } }, - { INDEX_op_qemu_ld64, { "L", "L" } }, - { INDEX_op_qemu_st64, { "L", "L" } }, - { INDEX_op_add_i64, { "r", "0", "r" } }, { INDEX_op_sub_i64, { "r", "0", "r" } }, { INDEX_op_mul_i64, { "r", "0", "r" } },