aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2016-12-06 16:51:31 -0800
committerAndrew Waterman <andrew@sifive.com>2016-12-06 16:51:31 -0800
commit7650b391d47dd0b73d541d39c48041aa53517973 (patch)
treef102c54fdcfd40466a50199f736fc57176634153
parentc86d2ee8dca8fb1186f036f64b7e3a49bdfc6266 (diff)
downloadriscv-opcodes-7650b391d47dd0b73d541d39c48041aa53517973.zip
riscv-opcodes-7650b391d47dd0b73d541d39c48041aa53517973.tar.gz
riscv-opcodes-7650b391d47dd0b73d541d39c48041aa53517973.tar.bz2
avoid non-standard predefined macros
-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