From patchwork Wed Jan 11 20:19:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artyom Tarasenko X-Patchwork-Id: 9511373 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 41FF260710 for ; Wed, 11 Jan 2017 21:05:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 335F528692 for ; Wed, 11 Jan 2017 21:05:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2591328696; Wed, 11 Jan 2017 21:05:46 +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 8EAB428692 for ; Wed, 11 Jan 2017 21:05:45 +0000 (UTC) Received: from localhost ([::1]:57096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRQ5Y-0002Uy-JP for patchwork-qemu-devel@patchwork.kernel.org; Wed, 11 Jan 2017 16:05:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRPO7-0006Wq-46 for qemu-devel@nongnu.org; Wed, 11 Jan 2017 15:20:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRPO6-0000zD-2F for qemu-devel@nongnu.org; Wed, 11 Jan 2017 15:20:51 -0500 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:34036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRPO5-0000z0-SA for qemu-devel@nongnu.org; Wed, 11 Jan 2017 15:20:49 -0500 Received: by mail-wm0-x244.google.com with SMTP id c85so575295wmi.1 for ; Wed, 11 Jan 2017 12:20:49 -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 :in-reply-to:references; bh=CjN5emMD6AtaUEAUrLznTGlHNUR/nbCtylonyODsyws=; b=I8Zv7pbw2nmNSKO1QrRg/+mdVUAbw/5K05sEtXw5C2uJtO+GIPyduFsXuiD5ytOmJ+ 30GPg9hSsxlHJbYB1C/FNdSZfjOmSEJ8pPjEDTSZdFxyOCEIH2xBm0qV3u2RiBYMHoOv gk6tTWx4GsCw6JcCxu/rCfls8MOXsqaYTOyUBMY0sVpFleM82LHAv0grzNqiVvmuDWDG For4hGDJXA/MHTCzmzYw6zvlpHzX5q6ofbYMi/HIy6WXYPpwSUjAnwPsLPzTVU3lKNvA gDBksmzR26HXgFy28DUpImesf9xAJ6P5brNscVb4cYNIkv6hDEH4HJlQby7vlXmBqraJ wKBA== 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:in-reply-to:references; bh=CjN5emMD6AtaUEAUrLznTGlHNUR/nbCtylonyODsyws=; b=HSvl520ZV3Iwr460fzMUc8DmPUPS2ueV9lUOadIyOPQFOhSNvPXWdE0TH3hgNFXeRG utG7WTf/jjkj2WOBW7VjsP3ewC72SUtqufWPo3nCdRDUIi0jrcW1qDuutcYu6P295THQ Pgi5xK2dByUT+UlEEhro+ezXbqgzFgPen8nPR8uz40PiTfgGsNv4xXYusIfY0rNPWHFB ykUbVl+uAEHulVkdwtx6DYXCMa/yxpLcrTtBcAJu3t+/QI4tlzh0ONs1v5Mz8uw1s3Ex lwYtFedVSVT5aEPU+chjzJhKb/ImwfjTqXjDJIuWpo8jmGsdN83xyLiNGfdX2+5ALsmX GxtQ== X-Gm-Message-State: AIkVDXKwxNgVJrYsYYqurytNzRZ/Dw6WJRknMMVtQo1cYXgRphsep+LiQ3eHjTKiDRUA/Q== X-Received: by 10.28.153.10 with SMTP id b10mr4245863wme.103.1484166048914; Wed, 11 Jan 2017 12:20:48 -0800 (PST) Received: from localhost (x55b4b54a.dyn.telefonica.de. [85.180.181.74]) by smtp.gmail.com with ESMTPSA id ct7sm10179519wjc.2.2017.01.11.12.20.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jan 2017 12:20:47 -0800 (PST) From: Artyom Tarasenko To: qemu-devel@nongnu.org Date: Wed, 11 Jan 2017 21:19:40 +0100 Message-Id: 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 v2 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 */