From patchwork Wed Jan 18 22:38:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artyom Tarasenko X-Patchwork-Id: 9524885 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 D7AEA6020B for ; Wed, 18 Jan 2017 22:46:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9673280DE for ; Wed, 18 Jan 2017 22:46:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC87D28639; Wed, 18 Jan 2017 22:46:57 +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 6241F280DE for ; Wed, 18 Jan 2017 22:46:57 +0000 (UTC) Received: from localhost ([::1]:44816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTz0K-00041e-7Q for patchwork-qemu-devel@patchwork.kernel.org; Wed, 18 Jan 2017 17:46:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTysu-0006LL-S1 for qemu-devel@nongnu.org; Wed, 18 Jan 2017 17:39:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTysu-0002Zw-A9 for qemu-devel@nongnu.org; Wed, 18 Jan 2017 17:39:17 -0500 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:35644) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTysu-0002ZL-49 for qemu-devel@nongnu.org; Wed, 18 Jan 2017 17:39:16 -0500 Received: by mail-wm0-x243.google.com with SMTP id d140so7555526wmd.2 for ; Wed, 18 Jan 2017 14:39:15 -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=CEPqvzP3TXjU8Ja7i4QBL1zb8FGyX/aAX+9sud/lFx8=; b=HnXmF9kOejmAGbn87NkbwwlAXmL31vIE8Psrzc/egeLsjp1lvNry7bdUjveVSn9Lzk UXbiyMA0M3s1+1gwE5IV9HI9Q1w6zh1OTLkDORT35DFHKNEZfyK4JFYPqHAO2qtjJoxN 2tyP4zT8VeD1HMzNuvMil9wJRuqVG16DP9LSWNIv6/0cO5b+9GSKTBxaAHvWibhkYwTt fFcfX1Ad+e9zurqdCcE8rw7PrHEQNF84VJl8hVi8UvdsiYKcvCoQJRuhMEbl3I2YgQVq 2jE+HsTaCvWVV7Y9WEqh4C7FEUGq32B7ALM18g4zZTaRVqxNsHhPyjk6DdwtPu0+mB77 J4nQ== 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=CEPqvzP3TXjU8Ja7i4QBL1zb8FGyX/aAX+9sud/lFx8=; b=Pf8wXTmMbjEwyUaunXnJpzK0ErhQGD0C7K/ttpZwXpiuX02XiHMRN6IztCz77mA3yX vkF8ltsFx3RexzvTfoD25/B9Hp6GJJCVDy6AU8MzhyctnT3xVEASkDLFzX0y8DXLXUs7 KCCCEgHzeVXntq5xuVoUHwWOtzEpn3xYh2G/e5LE9gu0M5Y7R+2R+/5NBLR5m0XDZ0nY bQwb3crHnPI/RnzytZ4vL/xHx4nuUZZ9+DLuJUQJbfRY1K4yhV2JUO8ji9Tloy7Wtj1R PCDPbBvs8mbXoPMCrapxX6bSzDFSxAySsO6oR8OKvbLo4+9c1i4lyTEx8o2M0YIWI2s0 19+w== X-Gm-Message-State: AIkVDXIFdfvrsCBkLhjcqFkChLL4QflEkoITSM7V9fuvGeYthVLnzlUqV+f7hAl65g9b4A== X-Received: by 10.28.170.211 with SMTP id t202mr4836053wme.71.1484779155056; Wed, 18 Jan 2017 14:39:15 -0800 (PST) Received: from localhost (x4e33e2b8.dyn.telefonica.de. [78.51.226.184]) by smtp.gmail.com with ESMTPSA id d29sm7934731wmi.19.2017.01.18.14.39.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jan 2017 14:39:14 -0800 (PST) From: Artyom Tarasenko To: peter.maydell@linaro.org Date: Wed, 18 Jan 2017 23:38:18 +0100 Message-Id: <1484779123-18968-6-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::243 Subject: [Qemu-devel] [PULL 05/30] target-sparc: add UltraSPARC T1 TLB #defines 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 --- target/sparc/cpu.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/sparc/cpu.h b/target/sparc/cpu.h index 4c4c159..f65d8b5 100644 --- a/target/sparc/cpu.h +++ b/target/sparc/cpu.h @@ -336,6 +336,10 @@ enum { #define TTE_PGSIZE_UA2005(tte) ((tte) & 7ULL) #define TTE_PA(tte) ((tte) & 0x1ffffffe000ULL) +/* UltraSPARC T1 specific */ +#define TLB_UST1_IS_REAL_BIT (1ULL << 9) /* Real translation entry */ +#define TLB_UST1_IS_SUN4V_BIT (1ULL << 10) /* sun4u/sun4v TTE format switch */ + #define SFSR_NF_BIT (1ULL << 24) /* JPS1 NoFault */ #define SFSR_TM_BIT (1ULL << 15) /* JPS1 TLB Miss */ #define SFSR_FT_VA_IMMU_BIT (1ULL << 13) /* USIIi VA out of range (IMMU) */