diff options
author | Tim Newsome <tim@sifive.com> | 2016-09-01 13:17:56 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-09-01 16:35:15 -0700 |
commit | 55d31b6f933bda107a399fdd169bd01a7ea5da6c (patch) | |
tree | f6a1407be80f25c9b33e3e8d93d7cc2a663a633b /debug/programs | |
parent | 83e90dd49da860c4af50325dec13355abe5386bb (diff) | |
download | riscv-tests-55d31b6f933bda107a399fdd169bd01a7ea5da6c.zip riscv-tests-55d31b6f933bda107a399fdd169bd01a7ea5da6c.tar.gz riscv-tests-55d31b6f933bda107a399fdd169bd01a7ea5da6c.tar.bz2 |
Add some immediate trigger tests.
Diffstat (limited to 'debug/programs')
-rw-r--r-- | debug/programs/trigger.S | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/debug/programs/trigger.S b/debug/programs/trigger.S index e5dfa67..25d2b89 100644 --- a/debug/programs/trigger.S +++ b/debug/programs/trigger.S @@ -3,11 +3,11 @@ #undef MCONTROL_TYPE #undef MCONTROL_DMODE #ifdef __riscv64 -# define MCONTROL_TYPE (0xfU<<((64)-4)) -# define MCONTROL_DMODE (1U<<((64)-5)) +# define MCONTROL_TYPE (0xf<<(64-4)) +# define MCONTROL_DMODE (1<<(64-5)) #else -# define MCONTROL_TYPE (0xfU<<((32)-4)) -# define MCONTROL_DMODE (1U<<((32)-5)) +# define MCONTROL_TYPE (0xf<<(32-4)) +# define MCONTROL_DMODE (1<<(32-5)) #endif .global main @@ -25,10 +25,10 @@ read_loop: blt t0, t2, read_loop la a0, data - li t0, 0 + li t0, 1 write_loop: - addi t0, t0, 1 sw t0, 0(a0) + addi t0, t0, 1 addi a0, a0, 4 blt t0, t2, write_loop |