aboutsummaryrefslogtreecommitdiff
path: root/encoding.h
diff options
context:
space:
mode:
authorDaniel Lustig <dlustig@nvidia.com>2021-07-19 19:15:58 -0400
committerGitHub <noreply@github.com>2021-07-19 16:15:58 -0700
commit65af4131c26fb4743fee4c4efbdff8a59eb4e48a (patch)
tree2a74f0d7e94ae3af3a63f2d3d0d5cd466af49385 /encoding.h
parente46f324eec2f783803fa776f589b9ef047db3af7 (diff)
downloadriscv-opcodes-65af4131c26fb4743fee4c4efbdff8a59eb4e48a.zip
riscv-opcodes-65af4131c26fb4743fee4c4efbdff8a59eb4e48a.tar.gz
riscv-opcodes-65af4131c26fb4743fee4c4efbdff8a59eb4e48a.tar.bz2
Virtual memory updates (#76)
* Add Svinval instructions * Add PTE defines for Priv 1.12 and Svpbmt
Diffstat (limited to 'encoding.h')
-rw-r--r--encoding.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/encoding.h b/encoding.h
index 53835bc..6d49450 100644
--- a/encoding.h
+++ b/encoding.h
@@ -216,7 +216,10 @@
#define PTE_A 0x040 /* Accessed */
#define PTE_D 0x080 /* Dirty */
#define PTE_SOFT 0x300 /* Reserved for Software */
+#define PTE_RSVD 0x1FC0000000000000 /* Reserved for future standard use */
+#define PTE_PBMT 0x6000000000000000 /* Svpbmt: Page-based memory types */
#define PTE_N 0x8000000000000000 /* Svnapot: NAPOT translation contiguity */
+#define PTE_ATTR 0xFFC0000000000000 /* All attributes and reserved bits */
#define PTE_PPN_SHIFT 10