From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 77608C25B4F for ; Mon, 13 May 2024 02:45:07 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6LgJ-0005MN-SR; Sun, 12 May 2024 22:44:51 -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 1s6LgD-0005M5-Lp; Sun, 12 May 2024 22:44:46 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6LgA-0003dJ-Df; Sun, 12 May 2024 22:44:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1715568269; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=XQHmv1i0W/Q8+AmpTodW3ayY8bc7ZZVzesxk9TYCw9E=; b=R8GMvrX9xtQRufrTcbWXVuexNWmW8Ih4bG7JTDD+DUakzW9TdN1IFdJ1iQoIAofmTgfMhLGQ1HlBdMtekA4MLcGwF48mvv2Ph4dZa9TXh72CkQ2OgyydCoAUttfE8Oc04JMYZhejRtijRsUNi1ZepUWJsaVdly8AVhjiKEGFUqg= X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R171e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=maildocker-contentspam033037067111; MF=zhiwei_liu@linux.alibaba.com; NM=1; PH=DS; RN=9; SR=0; TI=SMTPD_---0W6Gydo0_1715568266; Received: from 30.198.0.184(mailfrom:zhiwei_liu@linux.alibaba.com fp:SMTPD_---0W6Gydo0_1715568266) by smtp.aliyun-inc.com; Mon, 13 May 2024 10:44:27 +0800 Message-ID: Date: Mon, 13 May 2024 10:43:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/5] target/riscv: Reserve exception codes for sw-check and hw-err To: "Fea.Wang" , qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Frank Chang , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza References: <20240510065856.2436870-1-fea.wang@sifive.com> <20240510065856.2436870-6-fea.wang@sifive.com> Content-Language: en-US From: LIU Zhiwei In-Reply-To: <20240510065856.2436870-6-fea.wang@sifive.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=115.124.30.133; envelope-from=zhiwei_liu@linux.alibaba.com; helo=out30-133.freemail.mail.aliyun.com X-Spam_score_int: -174 X-Spam_score: -17.5 X-Spam_bar: ----------------- X-Spam_report: (-17.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@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-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On 2024/5/10 14:58, Fea.Wang wrote: > 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 > --- > 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 f888025c59..f037f727d9 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 = 0xc, /* since: priv-1.10.0 */ > RISCV_EXCP_LOAD_PAGE_FAULT = 0xd, /* since: priv-1.10.0 */ > RISCV_EXCP_STORE_PAGE_FAULT = 0xf, /* since: priv-1.10.0 */ > + RISCV_EXCP_SW_CHECK = 0x12, /* since: priv-1.13.0 */ > + RISCV_EXCP_HW_ERR = 0x13, /* since: priv-1.13.0 */ Reviewed-by: LIU Zhiwei Zhiwei > RISCV_EXCP_INST_GUEST_PAGE_FAULT = 0x14, > RISCV_EXCP_LOAD_GUEST_ACCESS_FAULT = 0x15, > RISCV_EXCP_VIRT_INSTRUCTION_FAULT = 0x16,