diff options
Diffstat (limited to 'riscv/riscv-probe/env/common/rv64')
| -rw-r--r-- | riscv/riscv-probe/env/common/rv64/macros.s | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/riscv/riscv-probe/env/common/rv64/macros.s b/riscv/riscv-probe/env/common/rv64/macros.s new file mode 100644 index 0000000..abc76f0 --- /dev/null +++ b/riscv/riscv-probe/env/common/rv64/macros.s @@ -0,0 +1,23 @@ +# See LICENSE for license details. + +.equ REGBYTES, 8 + +.macro lx a, b +ld \a, \b +.endm + +.macro sx a, b +sd \a, \b +.endm + +.macro lxsp a, b +ld \a, ((\b)*REGBYTES)(sp) +.endm + +.macro sxsp a, b +sd \a, ((\b)*REGBYTES)(sp) +.endm + +.macro .ptr a +.8byte \a +.endm |
