Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 503C12900 for ; Wed, 15 Feb 2023 08:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1676450061; bh=mP2icvZ3GgmCET7Ho6R67S2oimsUOBsXDhEdZt3K5jY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZBuORgG4kxf0hLpduk6AfLdRwmiYIoGKCerYtNbyPE1M5cfV7LYlDyZDdMHIvVRX+ a5E8mTa0S/riLsbG/es4rqymKTTUMSicAAhZxUUXnn0H2ECWFKCbpK6RYAjf8QGf6b mGFiH/cCxqh8KPyi3W2Z6NudrUCDahxD5DYHmIQs= Received: from ld50.lan (unknown [114.93.192.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 17B50606AE; Wed, 15 Feb 2023 16:34:21 +0800 (CST) From: WANG Xuerui To: Huacai Chen Cc: loongarch@lists.linux.dev, WANG Xuerui Subject: [PATCH v3 02/11] LoongArch: Add exception subcode definitions for the watchpoint exception Date: Wed, 15 Feb 2023 16:34:03 +0800 Message-Id: <20230215083412.3795357-3-kernel@xen0n.name> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215083412.3795357-1-kernel@xen0n.name> References: <20230215083412.3795357-1-kernel@xen0n.name> Precedence: bulk X-Mailing-List: loongarch@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: WANG Xuerui Signed-off-by: WANG Xuerui --- arch/loongarch/include/asm/loongarch.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/loongarch/include/asm/loongarch.h b/arch/loongarch/include/asm/loongarch.h index 4910969928f0..d087acaf206d 100644 --- a/arch/loongarch/include/asm/loongarch.h +++ b/arch/loongarch/include/asm/loongarch.h @@ -1405,7 +1405,9 @@ __BUILD_CSR_OP(tlbidx) #define EXCCODE_FPE 18 /* Floating Point Exception */ #define EXCSUBCODE_FPE 0 /* Floating Point Exception */ #define EXCSUBCODE_VFPE 1 /* Vector Exception */ -#define EXCCODE_WATCH 19 /* Watch address reference */ +#define EXCCODE_WATCH 19 /* WatchPoint Exception */ + #define EXCSUBCODE_WPEF 0 /* ... on instruction Fetch */ + #define EXCSUBCODE_WPEM 1 /* ... on Memory access */ #define EXCCODE_BTDIS 20 /* Binary Trans. Disabled */ #define EXCCODE_BTE 21 /* Binary Trans. Exception */ #define EXCCODE_PSI 22 /* Guest Privileged Error */ -- 2.39.1