Age | Commit message (Collapse) | Author | Files | Lines |
|
Add Ziccid test
|
|
Requires latest Spike.
|
|
* macro: define [sq]NaN[dfh] and [n]Inf[dfh]
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
* apply sNaNf
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
* apply sNaNd
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
* apply qNaNd
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
* apply qNaNf
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
* apply sNaNh
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
* apply Infh
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
* apply nInfh
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
* apply Infd
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
* apply nInfd
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
* apply Inff
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
* apply nInff
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
---------
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Co-authored-by: liangzhen <zhen.liang@spacemit.com>
|
|
Resolves #614
|
|
Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
|
|
* Fix qNaN replacement in a more scalable way
* Fix sNaN replacement in same manner as qNaN
|
|
Test case 6 of both rv64ua-amomaxu_w and rv64ua-amominu_w test a rv64 specific
behaviour that the upper 32 bits must be ignored. This test does not apply for
rv32 and this commits disables these tests for rv32.
|
|
* Remove use of qNaN to fix LLVM build
* Remove use of sNaN to fix LLVM build
|
|
This adds a test for pmpaddr[G-1] edge cases. This bit is unusual because it has read legalisation that depends on another CSR.
If the pmpcfg mode is OFF/TOR then it reads as 0. Otherwise it reads as its underlying value. Irrespective of pmpcfg it is always writable so you can always write it even when it reads as zero.
Another edge case is when CSRS/C are used to modify a *different* bit and the underlying value of pmpaddr[G-1] is 1 but it reads as 0. The spec says "All CSR instructions atomically read-modify-write a single CSR" so even if these instructions don't directly modify pmpaddr[G-1] they do read it and then write it back, which will change its underlying value since it reads as 0.
|
|
See https://github.com/riscv/riscv-isa-manual/issues/1255
cc @Timmmm
|
|
|
|
|
|
Compile non-vec benchmarks for rv64gc
|
|
|
|
sequences. (#602)
|
|
(#600)
- Enhanced test_macros.h with TEST_LD_ST_BYPASS and TEST_ST_LD_BYPASS macros
to validate both load-store and store-load bypassing logic.
|
|
Dhrystone which are non-fatal warnings in GCC 13 but fatal errors in GCC 14 (#587)
|
|
|
|
* Create hypervisor
Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com>
* Delete isa/hypervisor
Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com>
* Create Makefrag
Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com>
* Create 2-stage_translation.S
set 2-stage translation, do a simple load and store
Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com>
* Update Makefile
add hypervisor to Makefile
Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com>
* Update 2-stage_translation.S
fix some error
Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com>
* Update 2-stage_translation.S
Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com>
* Update Makefrag
Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com>
* Update Makefile
Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com>
* Modify address alignment
Modify address alignment to allow the page table to store 2048 entries
Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com>
---------
Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com>
|
|
|
|
Set PMP to create invalid address
|
|
|
|
|
|
|
|
|
|
[debug] Reserve triggers propperly in HwbpManual
|
|
https://github.com/riscv-collab/riscv-openocd/pull/1111 introduces a
change in OpenOCD behavior: a manual trigger should be manually removed
to step/resume from it.
This was not concidered in previous stop-gap solutions
(76ff703d9161945354e334afa45c5dfe7680da60 and
8cc4918e904ca009cd85350fadf6f44e91eca13c)
This commit:
1. Determines if `reserve trigger` is supported by the target.
This can be removed once
https://github.com/riscv-collab/riscv-openocd/pull/1111 is merged.
2. Marks `HwbpManual` test as not applicable in case `reserve trigger`
is not supported.
3. Accounts for the change in OpenOCD's behavior when stepping from a
manual BP.
4. Cleans up some minor mistakes in `HwbpManual`
|
|
[debug] Fix trigger reservation in HwbpManual
|
|
Syntax of the command was changed: (on/off) became compulsory.
|
|
[debug] Reserve the trigger in `HwbpManual`
|
|
There is already a mechanism for the test target to supply a known-bad
address, so use that address if it is provided.
|
|
issue#577
In the newest riscv spec(2021 or later), two csr register
"sptbr"(0x180) "s/mbadaddr"(0x243) were removed,
and upgraded to "satp" "s/mtval". Together with more functions.
This commit rename them to pass compile.
|
|
After https://github.com/riscv-collab/riscv-openocd/pull/1111 is merged,
the registers a user wishes to have direct control of should be
reserved.
This is the case in `HwbpManual`.
The test still works with older OpenOCD versions, since no exception
is generated when a command (`riscv reserve_trigger` in this case)
is not found.
|
|
The file was added by 00ab5f0dd4cf56b5a0551bc5adedf60c765d0c66 in #567.
Seems like a mistake.
```
> readelf -h debug/test
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: RISC-V
Version: 0x1
Entry point address: 0x1212340000
Start of program headers: 64 (bytes into file)
Start of section headers: 16552 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 2
Size of section headers: 64 (bytes)
Number of section headers: 18
Section header string table index: 17
```
|
|
merge .bss.* to .bss then entry.S can clear it.
|
|
|
|
Signed-off-by: Daniel Maslowski <info@orangecms.org>
|