X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=blobdiff_plain;f=debug%2Fprograms%2Fregs.S;h=65b62ecb29a0b25ca2311db6da4c9d2f0b5e6a46;hp=54b39616b9c542d2196516c1a38a99aa513591ef;hb=e291177a1cbeb6cef46aa5f8f019346c3202c3ef;hpb=6990284b8eab8d4e4f57f82ac8918913c5c63e97 diff --git a/debug/programs/regs.S b/debug/programs/regs.S index 54b3961..65b62ec 100644 --- a/debug/programs/regs.S +++ b/debug/programs/regs.S @@ -8,6 +8,8 @@ # define REGBYTES 4 #endif +#include "../../env/encoding.h" + .global main main: j main @@ -44,10 +46,11 @@ write_regs: SREG x30, 224(a0) SREG x31, 232(a0) - csrr x1, 1 # fflags + csrr x1, CSR_MSCRATCH all_done: j all_done + .align 16 data: .fill 64, 8, 0