aboutsummaryrefslogtreecommitdiff
path: root/debug/programs/trigger.S
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2016-12-06 17:04:14 -0800
committerAndrew Waterman <andrew@sifive.com>2016-12-06 17:04:14 -0800
commit56f46aa0f9688c87ce9ebd7658e19b884b018b6b (patch)
tree516d33de0c78bab0968f8548f7223160d8bba6fb /debug/programs/trigger.S
parentb68b39031a730ecc155ed87fba2ed5f111d0ab07 (diff)
downloadriscv-tests-56f46aa0f9688c87ce9ebd7658e19b884b018b6b.zip
riscv-tests-56f46aa0f9688c87ce9ebd7658e19b884b018b6b.tar.gz
riscv-tests-56f46aa0f9688c87ce9ebd7658e19b884b018b6b.tar.bz2
avoid non-standard predefined macros
Diffstat (limited to 'debug/programs/trigger.S')
-rw-r--r--debug/programs/trigger.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/programs/trigger.S b/debug/programs/trigger.S
index 1efafc7..48cd68b 100644
--- a/debug/programs/trigger.S
+++ b/debug/programs/trigger.S
@@ -1,6 +1,6 @@
#include "../../env/encoding.h"
-#ifdef __riscv64
+#if __riscv_xlen == 64
# define LREG ld
# define SREG sd
# define REGBYTES 8
@@ -12,7 +12,7 @@
#undef MCONTROL_TYPE
#undef MCONTROL_DMODE
-#ifdef __riscv64
+#if __riscv_xlen == 64
# define MCONTROL_TYPE (0xf<<(64-4))
# define MCONTROL_DMODE (1<<(64-5))
#else