From patchwork Thu Apr 17 19:32:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 340026 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 269C114008F for ; Fri, 18 Apr 2014 05:40:42 +1000 (EST) Received: from localhost ([::1]:34673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WasAq-0001Db-0k for incoming@patchwork.ozlabs.org; Thu, 17 Apr 2014 15:40:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Was4f-0001DF-Ej for qemu-devel@nongnu.org; Thu, 17 Apr 2014 15:34:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Was4Z-0002KU-4u for qemu-devel@nongnu.org; Thu, 17 Apr 2014 15:34:17 -0400 Received: from mail-qg0-x233.google.com ([2607:f8b0:400d:c04::233]:55493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Was4Z-0002KP-0c for qemu-devel@nongnu.org; Thu, 17 Apr 2014 15:34:11 -0400 Received: by mail-qg0-f51.google.com with SMTP id q108so866535qgd.24 for ; Thu, 17 Apr 2014 12:34:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=P3v43U7qhdfGOLD/tvM1oqi2xjfUm2Oh3d999KRrzoU=; b=hO77ZRnHQCuuQmUDERaAYkRYTym4ngXWrXq5MLqyZJNk/jjUR4WGyh0fVCWewAArVM Wopx2+yz4w8wWKAYT5POWbOLBPyzMcC/aYvZsSeptK56KiqyxySNLYT6/uC2P1fFYgoa 048vgcIwyGDPjmR0ga2rGEkqEUOHpLzoMlMj26pXoEXK52zq1US8n6Ry064WGk2qo01I c90EZwTep3Wrwm4o6XSFUAtIiLWM0MlHTk/MYqj7HsiTgRjdqRD9Ds4FEoQBeZOnfTnn HAAMugNDvWq9kDIZtMMojksNcuJqeSjPUwUpLbT4C3f34VxumJWQ+i9ospC1wPj1pav+ ypRA== X-Received: by 10.224.136.74 with SMTP id q10mr8654123qat.78.1397763250618; Thu, 17 Apr 2014 12:34:10 -0700 (PDT) Received: from anchor.com (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by mx.google.com with ESMTPSA id b62sm2694452qge.2.2014.04.17.12.34.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Apr 2014 12:34:10 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 17 Apr 2014 12:32:49 -0700 Message-Id: <1397763195-1485-15-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1397763195-1485-1-git-send-email-rth@twiddle.net> References: <1397763195-1485-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::233 Subject: [Qemu-devel] [PATCH 14/40] target-alpha: Convert opcode 0x1E to source/sink 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 Signed-off-by: Richard Henderson --- target-alpha/translate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 6664304..3c198eb 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -2962,6 +2962,7 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn) goto invalid_opc; } break; + case 0x1D: /* HW_MTPR (PALcode) */ #ifndef CONFIG_USER_ONLY @@ -2970,6 +2971,7 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn) #else goto invalid_opc; #endif + case 0x1E: /* HW_RET (PALcode) */ #ifndef CONFIG_USER_ONLY @@ -2978,12 +2980,12 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn) /* Pre-EV6 CPUs interpreted this as HW_REI, loading the return address from EXC_ADDR. This turns out to be useful for our emulation PALcode, so continue to accept it. */ - TCGv tmp = tcg_temp_new(); + tmp = tcg_temp_new(); tcg_gen_ld_i64(tmp, cpu_env, offsetof(CPUAlphaState, exc_addr)); gen_helper_hw_ret(cpu_env, tmp); tcg_temp_free(tmp); } else { - gen_helper_hw_ret(cpu_env, cpu_ir[rb]); + gen_helper_hw_ret(cpu_env, load_gpr(ctx, rb)); } ret = EXIT_PC_UPDATED; break;