From patchwork Fri Nov 4 20:50:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artyom Tarasenko X-Patchwork-Id: 9413211 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1646E60573 for ; Fri, 4 Nov 2016 21:00:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08E4F2AE95 for ; Fri, 4 Nov 2016 21:00:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1DD32AEB0; Fri, 4 Nov 2016 21:00:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 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 mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9B7312AE95 for ; Fri, 4 Nov 2016 21:00:44 +0000 (UTC) Received: from localhost ([::1]:40756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2lbP-0008Ml-QC for patchwork-qemu-devel@patchwork.kernel.org; Fri, 04 Nov 2016 17:00:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2lSQ-0000kz-1t for qemu-devel@nongnu.org; Fri, 04 Nov 2016 16:51:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2lSP-0003un-BC for qemu-devel@nongnu.org; Fri, 04 Nov 2016 16:51:26 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:34120) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2lSP-0003tj-55 for qemu-devel@nongnu.org; Fri, 04 Nov 2016 16:51:25 -0400 Received: by mail-wm0-x244.google.com with SMTP id p190so5634638wmp.1 for ; Fri, 04 Nov 2016 13:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=GMSUIKE8AC0kg4Rhv31nDiKVYEIdE56SkbrzFS7xdCs=; b=lABebAfJtpd8MpYRV1PlwNy136ExEjcGiV0rH4b5bKknOarSu/gcq4T/Iur/9oTSz0 JHF9L55U99hFu2XHYwFIj2ChDlq3ycF4pAA4fFL8zAsh/t81n2+hPI6tnxgJb6oKrf7k ERxUKOGMzb+V2p7S22pugNeZkvtsDf3Zhgx3lhKxNuc5pmwyPUNK4gQ1xpN8qR0FulOl rZO1T8KPurSzldccKBz8YkC5QOyh5CPjDqQayZRMZIq1vR24LGXniS1dj9dOc5xLaiFn 44OdTvKMp6Lu6OBZ8AKOinNJAmnjSGPCL+kRdGM85NbGT7pbctOqE9SOtY8t5Ql4RfzL xggw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=GMSUIKE8AC0kg4Rhv31nDiKVYEIdE56SkbrzFS7xdCs=; b=WPI8Bsopz9d8ycbfO4FcU4UksdSpUWsoE25bFyjrGsYZirHbUdtPODDWyvCj9YnVT3 S+Cg+uviRaImINKrxCY3riwx9g7AE/aYuRS1giDcd232z/ghJ8UJImvejSYtTH+SbDDJ E/feLbvX+9jmARLVQceG1EkX2HAfY/xzS3jy0Fdfn0/ri6ALWU/4PfEcfjjdglh2zJ3C 9DFtJi+5QwrSUjsb8zQANhd7BEkKt9qkUU9rWx1Ow1crN7hJVGn8JxtgKNnI4xWUK875 4vpgAa5Nw5f7mCL+j2whw13X2SVzai3aAVhdtjHmAQ2X+6BQATg4f9pQArairwmQIohC WeKA== X-Gm-Message-State: ABUngvfHUPm3RHaGeaS+agVk2jx0FtZexTQVJsV92BBU+2cE7BZicmYR3jms1MGitU9Cfg== X-Received: by 10.28.170.204 with SMTP id t195mr175737wme.113.1478292684095; Fri, 04 Nov 2016 13:51:24 -0700 (PDT) Received: from localhost (x55b4b5cf.dyn.telefonica.de. [85.180.181.207]) by smtp.gmail.com with ESMTPSA id t186sm6410683wmt.22.2016.11.04.13.51.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Nov 2016 13:51:23 -0700 (PDT) From: Artyom Tarasenko To: qemu-devel@nongnu.org Date: Fri, 4 Nov 2016 21:50:10 +0100 Message-Id: <00224dbf19917aafa3668ddd3dd96bb22a3c7731.1478291230.git.atar4qemu@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH v1 09/30] target-sparc: implement UltraSPARC-T1 Strand status ASR X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Cave-Ayland , Artyom Tarasenko , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Artyom Tarasenko Reviewed-by: Richard Henderson --- target-sparc/translate.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 0b0cde1..b898898 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -3429,6 +3429,17 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn) case 0x19: /* System tick compare */ gen_store_gpr(dc, rd, cpu_stick_cmpr); break; + case 0x1a: /* UltraSPARC-T1 Strand status */ + /* XXX HYPV check maybe not enough, UA2005 & UA2007 describe + * this ASR as impl. dep + */ + CHECK_IU_FEATURE(dc, HYPV); + { + TCGv t = gen_dest_gpr(dc, rd); + tcg_gen_movi_tl(t, 1UL); + gen_store_gpr(dc, rd, t); + } + break; case 0x10: /* Performance Control */ case 0x11: /* Performance Instrumentation Counter */ case 0x12: /* Dispatch Control */