From patchwork Sat Oct 1 10:05:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artyom Tarasenko X-Patchwork-Id: 9359117 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 184A36075E for ; Sat, 1 Oct 2016 10:07:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0979F295A0 for ; Sat, 1 Oct 2016 10:07:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F0F8D295BB; Sat, 1 Oct 2016 10:07:58 +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 A8C8F295A0 for ; Sat, 1 Oct 2016 10:07:58 +0000 (UTC) Received: from localhost ([::1]:54925 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqHD3-000696-NM for patchwork-qemu-devel@patchwork.kernel.org; Sat, 01 Oct 2016 06:07:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqHCO-00065W-Ib for qemu-devel@nongnu.org; Sat, 01 Oct 2016 06:07:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqHCN-0007cY-HY for qemu-devel@nongnu.org; Sat, 01 Oct 2016 06:07:16 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:35715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqHCN-0007c7-BN for qemu-devel@nongnu.org; Sat, 01 Oct 2016 06:07:15 -0400 Received: by mail-wm0-x242.google.com with SMTP id f193so2152889wmg.2 for ; Sat, 01 Oct 2016 03:07:15 -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; bh=VvhnriX0K2ksq2C4UwlY/YNTnX8FBQKDsZoXQMfVqYY=; b=FWmpMAWeSo7Ek5jd8WV0KyLbFHSLg9yMiyz1haJT3Imf8iuWXdvyDXsJKrMQyb1qiw kPPMdgkN03C/XSiOJUN7h3M8D8XpQ1QocOMDda0VwE6GN7dcgtQ2QX7vY9qWtNO8dO6e ZF8x0HG4uQvbYZkfqmVGdoPuXScP9jCld+dKpz0eQXZmRK+cx+/mazqULAZTMKIV4IdR 6i9dXJNQ4GUYGs6OiniaXgXOxozVIV24eHGRnMsyQyB0lIHgyKqVQ5P2MRX5qZhg4TpZ 5OOOQBBY6IL7o3Bc/H0gGjLYxxSuWOV+cDPZVKcuw/rWHrFPmd3TK5sCln7W7i2956wS 1kjQ== 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; bh=VvhnriX0K2ksq2C4UwlY/YNTnX8FBQKDsZoXQMfVqYY=; b=URjQ3oIqGsfycWATIYgMBWdVTIFK6gukETOdg9zQSrfTPcRkQajBXDSW7Hew0LqbEx 83Jv2ocIuHYHWnFmu4WTDREirXJMGd/exDjNRBjHKEIpCTE9sgi4s2S3WLs7KroLNnTY 9YHI8Q0HwlHRegEGJ3adDqBFqBJdmg/6LjDKfYLcpa2L8Kjv39k7jLV5JV4OPh+OQaGY 2rbK7xU6qcgAOLAEbBTk7qeE6OfN9NZ/PE+VIZ8Ssp7PwwoX8OYnOEPPnNNehAC1D9AI xxAka8szYTBuVsqBdpydXmPFn4EW1qQopOdW7TWpH0Ae4z6T2yTqeigy41Uq2D6du50r 8s1A== X-Gm-Message-State: AA6/9RlaXS8HFppQ8gPLFkmYdy1qW6BGY/qrdSkR4sOH727QfnVr5nopOvVePzVK/pht7g== X-Received: by 10.28.146.194 with SMTP id u185mr1631428wmd.101.1475316434625; Sat, 01 Oct 2016 03:07:14 -0700 (PDT) Received: from localhost (x55b4da19.dyn.telefonica.de. [85.180.218.25]) by smtp.gmail.com with ESMTPSA id j198sm8469445wmg.4.2016.10.01.03.07.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Oct 2016 03:07:13 -0700 (PDT) From: Artyom Tarasenko To: qemu-devel@nongnu.org Date: Sat, 1 Oct 2016 12:05:12 +0200 Message-Id: <1475316333-9776-9-git-send-email-atar4qemu@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1475316333-9776-1-git-send-email-atar4qemu@gmail.com> References: <1475316333-9776-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::242 Subject: [Qemu-devel] [PATCH 08/29] 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 e7691e4..b9c749c 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -3278,6 +3278,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 */