diff options
Diffstat (limited to 'machine/vm.h')
-rw-r--r-- | machine/vm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/machine/vm.h b/machine/vm.h index dd9bf59..4e6bcc1 100644 --- a/machine/vm.h +++ b/machine/vm.h @@ -5,7 +5,7 @@ #include <stdint.h> #define MEGAPAGE_SIZE ((uintptr_t)(RISCV_PGSIZE << RISCV_PGLEVEL_BITS)) -#ifdef __riscv64 +#if __riscv_xlen == 64 # define VM_CHOICE VM_SV39 # define VA_BITS 39 # define GIGAPAGE_SIZE (MEGAPAGE_SIZE << RISCV_PGLEVEL_BITS) |