From patchwork Fri Nov 4 20:50:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artyom Tarasenko X-Patchwork-Id: 9413185 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 1D55D60585 for ; Fri, 4 Nov 2016 20:56:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10A6A2ABCA for ; Fri, 4 Nov 2016 20:56:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 059AC2AD68; Fri, 4 Nov 2016 20:56:24 +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 AABD82ABCA for ; Fri, 4 Nov 2016 20:56:23 +0000 (UTC) Received: from localhost ([::1]:40734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2lXC-0004Wb-Sw for patchwork-qemu-devel@patchwork.kernel.org; Fri, 04 Nov 2016 16:56:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2lSG-0000T2-Tk for qemu-devel@nongnu.org; Fri, 04 Nov 2016 16:51:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2lSG-0003jp-4F for qemu-devel@nongnu.org; Fri, 04 Nov 2016 16:51:16 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:33509) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2lSF-0003iv-TT for qemu-devel@nongnu.org; Fri, 04 Nov 2016 16:51:16 -0400 Received: by mail-wm0-x241.google.com with SMTP id u144so5627346wmu.0 for ; Fri, 04 Nov 2016 13:51: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 :in-reply-to:references; bh=XpB9tPkDP9rm7kQrlmcPPTFaK7GJWl2dPxS1mFa2bcE=; b=z0wU9z/1O6sZX94sWDjC0VNfOs6/kQb0oKGbjhPSATaILrBHfaYgig4f5UQSr/I2uz Hw1vgnmGjOI4OREGt9x6bUnrQ+qfk/avME2jsm8Y3CcrCv2azIbfebKF9dqWks+p5zs6 Nc1zcq9ONj9Yc0YUgj9TCLpz6alrX0Tq7Xiz2T/WUe9xwMSwdFcUsTx/+XGDcr5yJMXw N9/WeA5Z5ejqdmlMh8M/wX5TcMS8nEyVaKg/u0lcHimCn6Gme0fOgmcUboeqUBuHJ2MB Iz73489D9UvWoWDkFDIAUUG8L/zXC8pp2SaN7sl0kPUn+820RZCMVV5QtEPe3BkXeUkL rAUg== 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=XpB9tPkDP9rm7kQrlmcPPTFaK7GJWl2dPxS1mFa2bcE=; b=PJl/jjOZDlanHlqJLBIVM/Rf6mDYybp4VI0zJ4heWxgMDLL14AgUZaX9RiUN8nGgxO 29eHHMEu4LF9+e5o0G9lya/rFenoHlTn0XGnF3Pni/jD0LG79nlIR4nBcv/RFT+ybQfL exfmQzF8XosS3UA5veqj5dbNZ3LPJpsUpgZ5KE9l+8PQjoTIRPVoaLkIPUsJDu4IUlPh 6+Cp/MG+10VBTPqzp7YpIMtmqLx5vkG5XpIiVPHm5Lt6VXemnMXLn9Sh3AzNvgQixer9 7O7IsE8mr9qVEWV2vk1YIsV2+I5tU1i+P3910M6tGS3odFkbfPiXxtspRoBsYLKekZ+0 rlCw== X-Gm-Message-State: ABUngvcHvSxLDSqk1JF2JvMhU5YSgfrjYeZnFRqb5P2iN3fgbr4UiXJR2OADJS+8Za77pA== X-Received: by 10.28.149.209 with SMTP id x200mr202231wmd.123.1478292674841; Fri, 04 Nov 2016 13:51:14 -0700 (PDT) Received: from localhost (x55b4b5cf.dyn.telefonica.de. [85.180.181.207]) by smtp.gmail.com with ESMTPSA id o62sm6473205wmg.9.2016.11.04.13.51.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Nov 2016 13:51:14 -0700 (PDT) From: Artyom Tarasenko To: qemu-devel@nongnu.org Date: Fri, 4 Nov 2016 21:50:05 +0100 Message-Id: <4cd7d0f47c3effe84895260392b4bba07a98ddaf.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::241 Subject: [Qemu-devel] [PATCH v1 04/30] target-sparc: add UA2005 TTE bit #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 , 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 --- target-sparc/cpu.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 687e158..b41f5c5 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -304,19 +304,36 @@ enum { #define TTE_W_OK_BIT (1ULL << 1) #define TTE_GLOBAL_BIT (1ULL << 0) +#define TTE_NFO_BIT_UA2005 (1ULL << 62) +#define TTE_USED_BIT_UA2005 (1ULL << 47) +#define TTE_LOCKED_BIT_UA2005 (1ULL << 61) +#define TTE_SIDEEFFECT_BIT_UA2005 (1ULL << 11) +#define TTE_PRIV_BIT_UA2005 (1ULL << 8) +#define TTE_W_OK_BIT_UA2005 (1ULL << 6) + #define TTE_IS_VALID(tte) ((tte) & TTE_VALID_BIT) #define TTE_IS_NFO(tte) ((tte) & TTE_NFO_BIT) #define TTE_IS_USED(tte) ((tte) & TTE_USED_BIT) #define TTE_IS_LOCKED(tte) ((tte) & TTE_LOCKED_BIT) #define TTE_IS_SIDEEFFECT(tte) ((tte) & TTE_SIDEEFFECT_BIT) +#define TTE_IS_SIDEEFFECT_UA2005(tte) ((tte) & TTE_SIDEEFFECT_BIT_UA2005) #define TTE_IS_PRIV(tte) ((tte) & TTE_PRIV_BIT) #define TTE_IS_W_OK(tte) ((tte) & TTE_W_OK_BIT) + +#define TTE_IS_NFO_UA2005(tte) ((tte) & TTE_NFO_BIT_UA2005) +#define TTE_IS_USED_UA2005(tte) ((tte) & TTE_USED_BIT_UA2005) +#define TTE_IS_LOCKED_UA2005(tte) ((tte) & TTE_LOCKED_BIT_UA2005) +#define TTE_IS_SIDEEFFECT_UA2005(tte) ((tte) & TTE_SIDEEFFECT_BIT_UA2005) +#define TTE_IS_PRIV_UA2005(tte) ((tte) & TTE_PRIV_BIT_UA2005) +#define TTE_IS_W_OK_UA2005(tte) ((tte) & TTE_W_OK_BIT_UA2005) + #define TTE_IS_GLOBAL(tte) ((tte) & TTE_GLOBAL_BIT) #define TTE_SET_USED(tte) ((tte) |= TTE_USED_BIT) #define TTE_SET_UNUSED(tte) ((tte) &= ~TTE_USED_BIT) #define TTE_PGSIZE(tte) (((tte) >> 61) & 3ULL) +#define TTE_PGSIZE_UA2005(tte) ((tte) & 7ULL) #define TTE_PA(tte) ((tte) & 0x1ffffffe000ULL) #define SFSR_NF_BIT (1ULL << 24) /* JPS1 NoFault */