From patchwork Wed Jan 18 22:38:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artyom Tarasenko X-Patchwork-Id: 9524889 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 E474F6020B for ; Wed, 18 Jan 2017 22:48:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4A2A280DE for ; Wed, 18 Jan 2017 22:48:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C557928639; Wed, 18 Jan 2017 22:48:51 +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 58244280DE for ; Wed, 18 Jan 2017 22:48:51 +0000 (UTC) Received: from localhost ([::1]:44821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTz2A-0005ZW-9H for patchwork-qemu-devel@patchwork.kernel.org; Wed, 18 Jan 2017 17:48:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTyt2-0006Sq-Hb for qemu-devel@nongnu.org; Wed, 18 Jan 2017 17:39:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTyt1-0002fK-Qo for qemu-devel@nongnu.org; Wed, 18 Jan 2017 17:39:24 -0500 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:33199) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTyt1-0002em-L7 for qemu-devel@nongnu.org; Wed, 18 Jan 2017 17:39:23 -0500 Received: by mail-wm0-x244.google.com with SMTP id r144so7567091wme.0 for ; Wed, 18 Jan 2017 14:39:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1KiPeAqWt7KGpCRLrPBb5fqpHyDZMbowLk8ll4aRcAY=; b=nIwYUChxHYJesdZyduz/8vZ/6H4dziIcvdiMG6SLsT7PvksbbRF2sN77lnN5Wb5azc GlKPuHuoZSefhi8IhzZCzcZ529nSU4bCJQXCwzkgaTc5MMP+137QfEP2YfarWcI+WJPZ ALwsaFccyaqsF81RJazK/gxQXmRCYgS4qcaagknfpZsCokAYMqYiBmMG9DHNnA/TrZZi 7Pkbthc1CvmdMq8Wg2I+M0gTojE+VSb5aa/Qhalz6i0otWYUNsfIV9NOJrQNq4MpJ+4D RJoIJqXfiex0XAALB/TWvSaWMAEjF2Euc2T9+oaDM5/jvzLrBHWPGX+FZGHIiTTiqbln N9CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1KiPeAqWt7KGpCRLrPBb5fqpHyDZMbowLk8ll4aRcAY=; b=hKv/QPCorh/Ela7aC8yu30g+Ck6P8Udt+lchIZE2RPGpJK/aiPOwQ8IsBFG1iWQewX zzcau16BRByYjvio91uf7B8Jxw2Qejoky5HvdimJtYGThdO20A2G3lcBTuJ7hkF9FepA /S2P4yVbEYqVEyOGcA0vNslEUxzyqroKBGw3BP/zCc8piUPv7P0vn4kve44JVjTFKhN2 HTuVm/RT/1kiTCZjFGjER7XSVGGP6seuJnyiijd0ufMx4RcjMPQH/d4rxvYpNjrOEixa LCkqetgiyTcKDj1QtMtMdzzvUpO+A3DTDedaJVyloVRLw4HuTAiN1+swuh2gCNvQyhoH 4Ngg== X-Gm-Message-State: AIkVDXJAs44ckRin/4gniYIuVNp+LpcEIl9DOjeeSR5gQYTN1ICXBrZMooGscidbPf+Yug== X-Received: by 10.223.139.90 with SMTP id v26mr4440097wra.99.1484779162659; Wed, 18 Jan 2017 14:39:22 -0800 (PST) Received: from localhost (x4e33e2b8.dyn.telefonica.de. [78.51.226.184]) by smtp.gmail.com with ESMTPSA id 191sm7946687wmo.21.2017.01.18.14.39.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jan 2017 14:39:22 -0800 (PST) From: Artyom Tarasenko To: peter.maydell@linaro.org Date: Wed, 18 Jan 2017 23:38:22 +0100 Message-Id: <1484779123-18968-10-git-send-email-atar4qemu@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1484779123-18968-1-git-send-email-atar4qemu@gmail.com> References: <1484779123-18968-1-git-send-email-atar4qemu@gmail.com> 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] [PULL 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@ilande.co.uk, qemu-devel@nongnu.org, Artyom Tarasenko , rth@twiddle.net 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 729f4e2..8902e44 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 */