aboutsummaryrefslogtreecommitdiff
path: root/encoding.h
diff options
context:
space:
mode:
Diffstat (limited to 'encoding.h')
-rw-r--r--encoding.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding.h b/encoding.h
index 7510975..85e97be 100644
--- a/encoding.h
+++ b/encoding.h
@@ -150,7 +150,7 @@
#ifdef __riscv
-#ifdef __riscv64
+#if __riscv_xlen == 64
# define MSTATUS_SD MSTATUS64_SD
# define SSTATUS_SD SSTATUS64_SD
# define RISCV_PGLEVEL_BITS 9