From nobody Mon Nov 25 05:29:19 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=reject dis=none) header.from=sifive.com ARC-Seal: i=1; a=rsa-sha256; t=1717681853; cv=none; d=zohomail.com; s=zohoarc; b=m8cW29rOET6LARxpjxyaUI081TXwlr0r+8plblLLRdw6btvn+3beI8CFH7P3X/BhDCxsMAAhHKgotpj8oknLoKcJO9kIDFroRF1JY9CBLyP06HCKZysMIjCPb3l0cWLeqCJseeN/BPy0RIsvpl5F22h10Apn1LYGaUmlkbt4jfc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1717681853; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=pRMNydqF1SwQs4xQ+2Ln0gRuBTZiPCbYFW9gmnDA3Kc=; b=SffOd0li/bTKk84N0wSX9bFTGX8pAR2kMDIHNLeQP+FjCSZhPMeFByvZTj42wEZJ9XtbpO6wVqenI9bVF6DiYnkNzl9kHLUzW/hoXBSl3ljGxGbla9Llqn8JgSy8o4Po53cHtA1//9v7PinO75HxDAztCUG8PQSBI4ZR/qw0fGA= 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=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1717681853968593.3828971805555; Thu, 6 Jun 2024 06:50:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFDV9-0000r3-VY; Thu, 06 Jun 2024 09:49:59 -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 1sFDV8-0000qj-Un for qemu-devel@nongnu.org; Thu, 06 Jun 2024 09:49:58 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFDV7-0008V4-I4 for qemu-devel@nongnu.org; Thu, 06 Jun 2024 09:49:58 -0400 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-7025b84c0daso834140b3a.2 for ; Thu, 06 Jun 2024 06:49:57 -0700 (PDT) Received: from hsinchu36-syssw02.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-703fd50bc86sm1150919b3a.175.2024.06.06.06.49.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 06:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1717681796; x=1718286596; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pRMNydqF1SwQs4xQ+2Ln0gRuBTZiPCbYFW9gmnDA3Kc=; b=gJIBJV6F7OtVMz3r9wAf/uVKHO99I/dd6/xDDXth2KO0pg47qc7bpelzMqJLjjbuCn 4kRlZHnew/7IcoaKPGrSPQUgMJszIqeVtUfQ9+egf3fabKz9ekBoOu1oB01YR3Jc4Bft Aj5Czp/Wlk5CQ5cJLLxlVXQv1gGSaS66pzzKc9Qetjdkdt4LT67nleTCBJ8wnscFgkHj 8v9zD+KdZU95bjl/nxVioMaiIKVwOx9CgNIeoPitoyGoa5zO+SGYAtoQG+7Y/EmeYDjp TfaElzfoKkPRGjzQ2jZ30E0g3B4R5Gd6/B7RcMYRvMNqsVwFpbisrhdIhICY/8qxXvfD va/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717681796; x=1718286596; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pRMNydqF1SwQs4xQ+2Ln0gRuBTZiPCbYFW9gmnDA3Kc=; b=Z2Dhcxc/fulwYwhnonR4B3cNIffy6jMU7/NAllcYqxEtZH/0ZDYAjxZGABNCh9QepW L8GLm1DqvnRtbZ1IcAvVuWIDZYwb4pCgxn/djEI0nB1d+Mgr6qKXxn/pIGRM/oUNM6Ef Iwy7FZTzN6cbxeX4DKsAx8IQEQJlG4DHqsIKVidoucZIdV/ulWa6XZ2Tbgikun9bnSWm FW7Wwv+Z9zB7nNo4pm6bopVlkG+LOhPTWfxY2SMhfeJ+GRKPzN9/dLqRVrA5GWlmEsmO GLhh52EWJTUIV3CBss8B7WeU9+CNZV7D02SqynuFGyxl63E1s96x2aPvfTS5SEGk4OAq gpsQ== X-Gm-Message-State: AOJu0YzFverDn6tLor1S40bXAPebQ8rKdSjwEYNAvU1rWAImSHxPJgjf hWiSVJkW37DtptLuLYguKItAUMpK6OdHAZh+7Q9zYUp89L5PTkNAAEjYtZWInNy1NFR7HxtJ6Tv 1xVivdNiSlLPZYNqa8rw9hp+1oOH1G93sMhgkZpBnaBgNZkca5N3nAyedA1bzASls1hkRNsE52M 0hSOs4bUCo+08bOEhz/sv/ltxcOMZfer4goto= X-Google-Smtp-Source: AGHT+IHZlU8OJwBBgPAHKVEnCpZKJR1aaCMpi93M7bGGEpSmTnRmn4mcFGe3eKguHd+AKZxaNNmnmw== X-Received: by 2002:a05:6a00:1894:b0:6f0:c828:65c1 with SMTP id d2e1a72fcca58-703e594b16emr6182824b3a.2.1717681795701; Thu, 06 Jun 2024 06:49:55 -0700 (PDT) From: "Fea.Wang" To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , "Fea.Wang" , Frank Chang Subject: [PATCH v4 5/6] target/riscv: Reserve exception codes for sw-check and hw-err Date: Thu, 6 Jun 2024 21:54:53 +0800 Message-Id: <20240606135454.119186-6-fea.wang@sifive.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240606135454.119186-1-fea.wang@sifive.com> References: <20240606135454.119186-1-fea.wang@sifive.com> MIME-Version: 1.0 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=2607:f8b0:4864:20::432; envelope-from=fea.wang@sifive.com; helo=mail-pf1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 @sifive.com) X-ZM-MESSAGEID: 1717681854753100001 Content-Type: text/plain; charset="utf-8" Based on the priv-1.13.0, add the exception codes for Software-check and Hardware-error. Signed-off-by: Fea.Wang Reviewed-by: Frank Chang Reviewed-by: LIU Zhiwei Reviewed-by: Alistair Francis --- target/riscv/cpu_bits.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/riscv/cpu_bits.h b/target/riscv/cpu_bits.h index 096a51b331..c257c5ed7d 100644 --- a/target/riscv/cpu_bits.h +++ b/target/riscv/cpu_bits.h @@ -673,6 +673,8 @@ typedef enum RISCVException { RISCV_EXCP_INST_PAGE_FAULT =3D 0xc, /* since: priv-1.10.0 */ RISCV_EXCP_LOAD_PAGE_FAULT =3D 0xd, /* since: priv-1.10.0 */ RISCV_EXCP_STORE_PAGE_FAULT =3D 0xf, /* since: priv-1.10.0 */ + RISCV_EXCP_SW_CHECK =3D 0x12, /* since: priv-1.13.0 */ + RISCV_EXCP_HW_ERR =3D 0x13, /* since: priv-1.13.0 */ RISCV_EXCP_INST_GUEST_PAGE_FAULT =3D 0x14, RISCV_EXCP_LOAD_GUEST_ACCESS_FAULT =3D 0x15, RISCV_EXCP_VIRT_INSTRUCTION_FAULT =3D 0x16, --=20 2.34.1