Skip to content

Commit

Permalink
delete PMP; delete fence
Browse files Browse the repository at this point in the history
  • Loading branch information
PAN-Ziyue committed Nov 17, 2021
1 parent e0b0986 commit 9cbca5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions env/p/riscv_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,15 @@ reset_vector: \
(1 << CAUSE_BREAKPOINT); \
csrw medeleg, t0; \
1: csrwi mstatus, 0; \
li t0, 0x80; \
csrw mstatus, t0; \
init; \
EXTRA_INIT; \
EXTRA_INIT_TIMER; \
la t0, 1f; \
csrw mepc, t0; \
csrr a0, mhartid; \
mret; \
j 1f; \
1:

//-----------------------------------------------------------------------
Expand All @@ -233,7 +235,6 @@ reset_vector: \
//-----------------------------------------------------------------------

#define RVTEST_PASS \
fence; \
li TESTNUM, 1; \
li a0, 0x5555; \
li a1, 0x100000; \
Expand All @@ -242,7 +243,6 @@ reset_vector: \

#define TESTNUM gp
#define RVTEST_FAIL \
fence; \
1: beqz TESTNUM, 1b; \
sll TESTNUM, TESTNUM, 1; \
or TESTNUM, TESTNUM, 1; \
Expand Down

0 comments on commit 9cbca5a

Please sign in to comment.