From patchwork Mon Mar 29 17:48:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 50001 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 9C952B7C67 for ; Tue, 13 Apr 2010 09:31:51 +1000 (EST) Received: from localhost ([127.0.0.1]:37726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1T4h-0001Rn-8m for incoming@patchwork.ozlabs.org; Mon, 12 Apr 2010 19:29:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1T1n-0000nd-HI for qemu-devel@nongnu.org; Mon, 12 Apr 2010 19:26:51 -0400 Received: from [140.186.70.92] (port=54759 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1T1i-0000mz-7C for qemu-devel@nongnu.org; Mon, 12 Apr 2010 19:26:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1T1f-0007FC-GV for qemu-devel@nongnu.org; Mon, 12 Apr 2010 19:26:46 -0400 Received: from are.twiddle.net ([75.149.56.221]:42309) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1T1f-0007Eb-3o for qemu-devel@nongnu.org; Mon, 12 Apr 2010 19:26:43 -0400 Received: by are.twiddle.net (Postfix, from userid 5000) id 6B934DD1; Mon, 12 Apr 2010 16:26:40 -0700 (PDT) Message-Id: <610e07bf1f62694f92c4027cdf6fd4b9e00920ea.1271114639.git.rth@twiddle.net> In-Reply-To: References: From: Richard Henderson Date: Mon, 29 Mar 2010 10:48:14 -0700 To: qemu-devel@nongnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: aurelien@aurel32.net Subject: [Qemu-devel] [PATCH 05/10] target-alpha: Update commentary for opcode 0x1A. 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 --- target-alpha/translate.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 29152fa..2c29337 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -2535,13 +2535,16 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn) break; #endif case 0x1A: - if (rb != 31) + /* JMP, JSR, RET, JSR_COROUTINE. These only differ by the branch + prediction stack action, which of course we don't implement. */ + if (rb != 31) { tcg_gen_andi_i64(cpu_pc, cpu_ir[rb], ~3); - else + } else { tcg_gen_movi_i64(cpu_pc, 0); - if (ra != 31) + } + if (ra != 31) { tcg_gen_movi_i64(cpu_ir[ra], ctx->pc); - /* Those four jumps only differ by the branch prediction hint */ + } ret = EXIT_PC_UPDATED; break; case 0x1B: