From patchwork Mon May 30 10:17:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 98045 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C9D5DB6F6B for ; Wed, 1 Jun 2011 00:59:21 +1000 (EST) Received: from localhost ([::1]:36116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRQPf-00048H-BP for incoming@patchwork.ozlabs.org; Tue, 31 May 2011 10:59:19 -0400 Received: from eggs.gnu.org ([140.186.70.92]:53721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRQPS-00047y-9Z for qemu-devel@nongnu.org; Tue, 31 May 2011 10:59:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRQPO-0001Gt-3M for qemu-devel@nongnu.org; Tue, 31 May 2011 10:59:06 -0400 Received: from cantor.suse.de ([195.135.220.2]:44350 helo=mx1.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRQPN-0001Gn-T7 for qemu-devel@nongnu.org; Tue, 31 May 2011 10:59:02 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 83E2190847 for ; Tue, 31 May 2011 16:59:00 +0200 (CEST) From: Alexander Graf To: "qemu-devel@nongnu.org Developers" Date: Mon, 30 May 2011 12:17:45 +0200 Message-Id: <1306750665-27837-1-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.6.0.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 195.135.220.2 Subject: [Qemu-devel] [PATCH] s390x: implement lrvgr X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The LRVGR instruction was missing. Implement it, so everyone's happy. Reported-by: Balazs Kutil Signed-off-by: Alexander Graf --- target-s390x/translate.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index afeb5e6..eda4624 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -3473,6 +3473,9 @@ static void disas_b9(DisasContext *s, int op, int r1, int r2) tcg_temp_free_i64(tmp2); tcg_temp_free_i64(tmp3); break; + case 0x0f: /* LRVGR R1,R2 [RRE] */ + tcg_gen_bswap64_i64(regs[r1], regs[r2]); + break; case 0x1f: /* LRVR R1,R2 [RRE] */ tmp32_1 = load_reg32(r2); tcg_gen_bswap32_i32(tmp32_1, tmp32_1);