summaryrefslogtreecommitdiff
path: root/p/riscv_test.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2020-11-23 23:06:46 -0800
committerGitHub <noreply@github.com>2020-11-23 23:06:46 -0800
commit1d9e7eaa85d9929d3f76b460c25ca26e1245a371 (patch)
tree71ce98bfdf3172f3f79c0db4743113c36d75a628 /p/riscv_test.h
parent43d3d53809085e2c8f030d72eed1bdf798bfb31a (diff)
parent6f81792315c7263a3c4cd40c05cfc54aa95cbd49 (diff)
downloadenv-1d9e7eaa85d9929d3f76b460c25ca26e1245a371.zip
env-1d9e7eaa85d9929d3f76b460c25ca26e1245a371.tar.gz
env-1d9e7eaa85d9929d3f76b460c25ca26e1245a371.tar.bz2
Merge pull request #27 from bucaps/satp_stval-fixes
Minor clang-related fixes
Diffstat (limited to 'p/riscv_test.h')
-rw-r--r--p/riscv_test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/riscv_test.h b/p/riscv_test.h
index 2b6ff83..a08f49e 100644
--- a/p/riscv_test.h
+++ b/p/riscv_test.h
@@ -110,7 +110,7 @@
#define INIT_SATP \
la t0, 1f; \
csrw mtvec, t0; \
- csrwi sptbr, 0; \
+ csrwi satp, 0; \
.align 2; \
1: