aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64si/csr.S
AgeCommit message (Collapse)AuthorFilesLines
2022-12-07zicntr: separate cycle/instret accessibility test (#439)Chih-Min Chao1-8/+0
It is allowed that M-mode only implementation could skip cycle/instret if the Zicntr is not included. Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com> Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2022-06-07Set TESTNUM before executing code.Tim Newsome1-3/+2
Tests that might cause a trap during their code need TESTNUM (gp) set so the trap handler can correctly identify which test is running, and also report that to the user in case the test fails. Fix up shamt.S and csr.S to handle the new behavior.
2021-06-01Enable access to cycle counter before trying to write itAndrew Waterman1-0/+13
There are two reasons that writing the cycle counter might trap: - Because it's a read-only CSR - Because mcounteren.CY=0 or scounteren.CY=0 We want to make sure we're testing the first property, so set up the other bits accordingly.
2021-06-01Test all four ways of reading a read-only CSRAndrew Waterman1-0/+8
2020-12-08Add rd=x0 test case to csr test (#308)Takahiro1-0/+1
2020-03-21Fix regression introduced by 24d7d6b68c5581c36cbdef354b1882a7a8dd52c5Andrew Waterman1-7/+7
2020-03-18Have both rs=rd and rs!=rd cases in csr.S (#263)Takahiro1-12/+15
2020-03-06Don't assume reset state of mscratch (#254)Paul Donahue1-1/+1
* Bump riscv-test-env * Merge master * Don't assume that mscratch is initialized to a particular value on reset
2020-02-20Fix rv64mi-p-csr on systems with FPUsAndrew Waterman1-2/+3
3a98ec2e306938cce07ab15e3678d670611aa66d introduced a subtle bug because of the value of TESTNUM at the point an expected exception was taken. Fix by moving the new tests earlier in the program.
2020-01-31Added CSR test cases on whether writing 0 to CSR works, as that might get ↵Torbjørn Viem Ness1-0/+2
overlooked by implementors because some CSR operations should ignore writes if source is x0 (#236)
2017-11-09Use mstatus.MPP to check existence of U-modeAndrew Waterman1-5/+6
misa is allowed to be hardwired to 0, so checking its U bit could incorrectly suggest that U-mode is not supported.
2017-10-30Declare trap handlers as global symbols. (#87)Richard Xia1-0/+1
This allows them to be referenced by other files, such as a test environment that lives in a separate compilation unit.
2017-10-26Fix rv64mi-csr for the case where U-mode is not available. (#86)Richard Xia1-0/+16
2017-08-07rv64[ms]i-csr: Only emit F instructions when compiled for F.Richard Xia1-1/+6
2017-05-05Check UXL in sstatusAndrew Waterman1-0/+5
2016-11-01Make sure FP stores don't write memory if mstatus.FS=0.Andrew Waterman1-8/+22
2016-08-26Update to new breakpoint & counter specAndrew Waterman1-6/+6
2016-07-22skip user-mode trap tests in rv32mi/rv64mi-p-csr if no user modeHoward Mao1-0/+9
2016-07-11Remove instruction width assumptions to support RVCAndrew Waterman1-0/+1
2016-04-30ERET -> xRET; new memory mapAndrew Waterman1-16/+8
For now, we no longer build hex files, because the programs don't start at address 0. This decision will likely be revisited.
2016-03-03Some S-mode tests really only belong in M-modeAndrew Waterman1-1/+9
2016-03-03WIP on priv spec v1.9Andrew Waterman1-11/+6
2015-05-09Update to privileged architecture version 1.7Andrew Waterman1-2/+2
2015-03-25split out S-mode tests and M-mode testsYunsup Lee1-7/+14
2015-03-17Merge [shm]call into ecall, [shm]ret into eretAndrew Waterman1-1/+1
2015-03-12Update to new privileged specAndrew Waterman1-23/+30
2015-01-09Add LICENSEAndrew Waterman1-0/+2
2014-01-31Add rv32si tests, including illegality of shamt[5]Andrew Waterman1-1/+1
2014-01-31Make CSR test much more robustAndrew Waterman1-0/+52
2014-01-21Add CSRRx/CSRRxI testAndrew Waterman1-0/+33