diff options
Diffstat (limited to 'debug/programs/trigger.S')
-rw-r--r-- | debug/programs/trigger.S | 4 |
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 |