From e291177a1cbeb6cef46aa5f8f019346c3202c3ef Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Wed, 8 Jun 2016 19:53:57 -0700 Subject: All tests pass with spike now. I did comment out a couple. --- debug/programs/regs.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'debug/programs/regs.S') 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 -- cgit v1.1