[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 08/18] target/riscv: Add defines for WorldGuard CSRs
From: |
Jim Shu |
Subject: |
[PATCH v2 08/18] target/riscv: Add defines for WorldGuard CSRs |
Date: |
Thu, 17 Apr 2025 18:52:39 +0800 |
Add CSRs for 3 WG extensions: Smwg, Smwgd, and Sswg.
Signed-off-by: Jim Shu <jim.shu@sifive.com>
---
target/riscv/cpu_bits.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/target/riscv/cpu_bits.h b/target/riscv/cpu_bits.h
index a30317c617..7705c6995e 100644
--- a/target/riscv/cpu_bits.h
+++ b/target/riscv/cpu_bits.h
@@ -408,6 +408,11 @@
#define CSR_DPC 0x7b1
#define CSR_DSCRATCH 0x7b2
+/* RISC-V WorldGuard */
+#define CSR_MLWID 0x390
+#define CSR_SLWID 0x190
+#define CSR_MWIDDELEG 0x748
+
/* Performance Counters */
#define CSR_MHPMCOUNTER3 0xb03
#define CSR_MHPMCOUNTER4 0xb04
--
2.17.1
- [PATCH v2 00/18] Implements RISC-V WorldGuard extension v0.4, Jim Shu, 2025/04/17
- [PATCH v2 01/18] accel/tcg: Store section pointer in CPUTLBEntryFull, Jim Shu, 2025/04/17
- [PATCH v2 02/18] system/physmem: Remove the assertion of page-aligned section number, Jim Shu, 2025/04/17
- [PATCH v2 03/18] accel/tcg: memory access from CPU will pass access_type to IOMMU, Jim Shu, 2025/04/17
- [PATCH v2 04/18] exec: Add RISC-V WorldGuard WID to MemTxAttrs, Jim Shu, 2025/04/17
- [PATCH v2 05/18] hw/misc: riscv_worldguard: Add RISC-V WorldGuard global config, Jim Shu, 2025/04/17
- [PATCH v2 06/18] target/riscv: Add CPU options of WorldGuard CPU extension, Jim Shu, 2025/04/17
- [PATCH v2 07/18] target/riscv: Add hard-coded CPU state of WG extension, Jim Shu, 2025/04/17
- [PATCH v2 08/18] target/riscv: Add defines for WorldGuard CSRs,
Jim Shu <=
- [PATCH v2 09/18] target/riscv: Allow global WG config to set WG CPU callbacks, Jim Shu, 2025/04/17
- [PATCH v2 11/18] target/riscv: Add WID to MemTxAttrs of CPU memory transactions, Jim Shu, 2025/04/17
- [PATCH v2 10/18] target/riscv: Implement WorldGuard CSRs, Jim Shu, 2025/04/17
- [PATCH v2 12/18] target/riscv: Expose CPU options of WorldGuard, Jim Shu, 2025/04/17
- [PATCH v2 13/18] hw/misc: riscv_worldguard: Add API to enable WG extension of CPU, Jim Shu, 2025/04/17
- [PATCH v2 14/18] hw/misc: riscv_wgchecker: Implement RISC-V WorldGuard Checker, Jim Shu, 2025/04/17
- [PATCH v2 15/18] hw/misc: riscv_wgchecker: Implement wgchecker slot registers, Jim Shu, 2025/04/17
- [PATCH v2 16/18] hw/misc: riscv_wgchecker: Implement correct block-access behavior, Jim Shu, 2025/04/17
- [PATCH v2 17/18] hw/misc: riscv_wgchecker: Check the slot settings in translate, Jim Shu, 2025/04/17
- [PATCH v2 18/18] hw/riscv: virt: Add WorldGuard support, Jim Shu, 2025/04/17