diff options
author | Chih-Min Chao <48193236+chihminchao@users.noreply.github.com> | 2022-04-07 14:03:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 23:03:50 -0700 |
commit | 70b7e9ca2d04effda5fe964c968fbbabf72e54d9 (patch) | |
tree | 374dcdb4c1a9225e244dc1fa3972195fcc51f852 /riscv/isa_parser.h | |
parent | 1767a27ad4cf8f9eb1a30d9d9a2495477071339f (diff) | |
download | riscv-isa-sim-70b7e9ca2d04effda5fe964c968fbbabf72e54d9.zip riscv-isa-sim-70b7e9ca2d04effda5fe964c968fbbabf72e54d9.tar.gz riscv-isa-sim-70b7e9ca2d04effda5fe964c968fbbabf72e54d9.tar.bz2 |
mmu: support asid/vmid (#928)
The change makes [v]satp.asid and hgatp.vmid writtable and supports
maximum length for rv32 and rv64. Software could write and read the
satp.asid to get the valid length or check if the core supports
asid/vmid or not. However, there is no official way to describe this hardware
capability (device tree or something else). Two implementation flags
are also added for future use and enabled by default.
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/isa_parser.h')
-rw-r--r-- | riscv/isa_parser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/isa_parser.h b/riscv/isa_parser.h index 925dd3d..3cefe12 100644 --- a/riscv/isa_parser.h +++ b/riscv/isa_parser.h @@ -59,6 +59,8 @@ typedef enum { IMPL_MMU_SV57, IMPL_MMU_SBARE, IMPL_MMU, + IMPL_MMU_VMID, + IMPL_MMU_ASID, } impl_extension_t; class isa_parser_t { |