projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2779698
)
target/riscv: Reserve exception codes for sw-check and hw-err
author
Fea.Wang
<fea.wang@sifive.com>
Thu, 6 Jun 2024 13:54:53 +0000
(21:54 +0800)
committer
Alistair Francis
<alistair.francis@wdc.com>
Wed, 26 Jun 2024 12:57:49 +0000
(22:57 +1000)
Based on the priv-1.13.0, add the exception codes for Software-check and
Hardware-error.
Signed-off-by: Fea.Wang <fea.wang@sifive.com>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <
20240606135454
.119186-6-fea.wang@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu_bits.h
patch
|
blob
|
history
diff --git
a/target/riscv/cpu_bits.h
b/target/riscv/cpu_bits.h
index 096a51b3315d1716388c96295f079af718915124..c257c5ed7dc99c4fa3b88af3a9f2f3e1fd250f36 100644
(file)
--- 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 */
RISCV_EXCP_INST_GUEST_PAGE_FAULT = 0x14,
RISCV_EXCP_LOAD_GUEST_ACCESS_FAULT = 0x15,
RISCV_EXCP_VIRT_INSTRUCTION_FAULT = 0x16,