aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64si
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2019-11-04 13:44:22 -0800
committerAndrew Waterman <andrew@sifive.com>2019-11-04 13:44:22 -0800
commitc56451fc5ab672d2ec49663ff83d0dc51c61aa57 (patch)
treebf3b444e3f0b3bbfaaf1d7b65ceea28b585413ee /isa/rv64si
parent2fc2416094314a4253fe096fead078b75d361bbf (diff)
downloadriscv-tests-c56451fc5ab672d2ec49663ff83d0dc51c61aa57.zip
riscv-tests-c56451fc5ab672d2ec49663ff83d0dc51c61aa57.tar.gz
riscv-tests-c56451fc5ab672d2ec49663ff83d0dc51c61aa57.tar.bz2
Remove cruft from icache-alias test
Diffstat (limited to 'isa/rv64si')
-rw-r--r--isa/rv64si/icache-alias.S35
1 files changed, 0 insertions, 35 deletions
diff --git a/isa/rv64si/icache-alias.S b/isa/rv64si/icache-alias.S
index 15553b1..dbc934e 100644
--- a/isa/rv64si/icache-alias.S
+++ b/isa/rv64si/icache-alias.S
@@ -116,41 +116,6 @@ mtvec_handler:
jr a2
- li t1, 2
- bne TESTNUM, t1, 1f
- # Make sure D bit is clear
- lw t0, page_table_1
- and t1, t0, PTE_D
- bnez t1, die
-skip:
- csrr t0, mepc
- add t0, t0, 4
- csrw mepc, t0
- mret
-
-1:
- li t1, 3
- bne TESTNUM, t1, 1f
- # The implementation doesn't appear to set D bits in HW.
- # Make sure the D bit really is clear.
- lw t0, page_table_1
- and t1, t0, PTE_D
- bnez t1, die
- # Set the D bit.
- or t0, t0, PTE_D
- sw t0, page_table_1, t1
- sfence.vma
- mret
-
-1:
- li t1, 4
- bne TESTNUM, t1, 1f
- j pass
-
-1:
-die:
- RVTEST_FAIL
-
RVTEST_CODE_END
.data