From nobody Thu Nov 28 11:01:48 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1693149535; cv=none; d=zohomail.com; s=zohoarc; b=lpfWKdGGlnRwH/a26Svhk7VwjbHCqBaWyDP1KApIlol4KLZsx4iVpUVCqNP+PUlJ3jr6EgucU7eX8AqHlZGFJGZWHmCsbMsTDZEIt/0I+jCn5Xj4EmYSajNg+oZRTjRVGMwcATxgyOirfgKCgU1sKJhU3laLpkbkRwagmzgQ7iw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693149535; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=tvF36gr4U2H1yn6VpZwLScEEx292O8bCsaNF3OOeDas=; b=SI7dSOq6SbxoHjZsV3ja9pFt9+AD8bk5WSKuSGOwAWYxAx9WuXq4pfPRBJWDZVtXOjCB5njAI1KbU6BZbKRO2D140ryZdb61GZ9HL3bPAX5aGfmuYIGKg6z8gHCcn4nWV+0k8OBptstnWGvHD/HiCf273u3v4FzkaWWHIx+A9hc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1693149535161125.32789049949758; Sun, 27 Aug 2023 08:18:55 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaHWf-00084b-Db; Sun, 27 Aug 2023 11:18:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaHWX-00084K-N9 for qemu-devel@nongnu.org; Sun, 27 Aug 2023 11:17:57 -0400 Received: from dfw.source.kernel.org ([139.178.84.217]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaHWV-0006Lw-Gs for qemu-devel@nongnu.org; Sun, 27 Aug 2023 11:17:57 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8B8E260691; Sun, 27 Aug 2023 15:17:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B38EAC433C7; Sun, 27 Aug 2023 15:17:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693149472; bh=bf12EkYhs02Sea64Gguqzg5CpFkL3oXiSeHhMOzt/HM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ipV/1VS8VJvBa2DgvoM2ZK5RR5r1ML4D2PfwrJXP4Aw5lEX07KCAfDJ/seUIswk+N IfsVP2qzaQegVP9QKun4sGVzWwjnArrP/UKR4K6b8AbQ4W6e6XNKJ9yIqP3HVrCXVu IXWj6edv9lwd+0FFoKeLCL5sMc2ibFjCuNelCc9CM4wmGCQUcBxFhj4RGxvrG9yMi2 /rMgyQp8ut98bx6aToh5+U3gTbpZVpATXd6wziyW/Jr8H7pDdl1jfGgonn1n7+81z/ 7BoEae1h8HBRoNxGTYg0zJ6/4qdmOskaSAWubHbcAQRstyQl7g/yqib9MMNJA7cKeq Fs42Dgfjl9HCA== From: deller@kernel.org To: Richard Henderson , Peter Maydell , qemu-devel@nongnu.org Cc: Helge Deller , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 1/5] target/hppa: Add missing PL1 and PL2 privilege levels Date: Sun, 27 Aug 2023 17:17:42 +0200 Message-ID: <20230827151747.290653-2-deller@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230827151747.290653-1-deller@kernel.org> References: <20230827151747.290653-1-deller@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=139.178.84.217; envelope-from=deller@kernel.org; helo=dfw.source.kernel.org X-Spam_score_int: -70 X-Spam_score: -7.1 X-Spam_bar: ------- X-Spam_report: (-7.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1693149536429100001 From: Helge Deller The hppa CPU has 4 privilege levels (0-3). Mention the missing PL1 and PL2 levels, although the Linux kernel uses only 0 (KERNEL) and 3 (USER). Not sure about HP-UX. Signed-off-by: Helge Deller Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/hppa/cpu.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/hppa/cpu.h b/target/hppa/cpu.h index 75c5c0ccf7..6c5b0e67c8 100644 --- a/target/hppa/cpu.h +++ b/target/hppa/cpu.h @@ -31,8 +31,11 @@ #define TCG_GUEST_DEFAULT_MO TCG_MO_ALL =20 #define MMU_KERNEL_IDX 0 +#define MMU_PL1_IDX 1 +#define MMU_PL2_IDX 2 #define MMU_USER_IDX 3 #define MMU_PHYS_IDX 4 + #define TARGET_INSN_START_EXTRA_WORDS 1 =20 /* Hardware exceptions, interrupts, faults, and traps. */ --=20 2.41.0