In general, some csr registers can't be recognized "sptbr" "sbadaddr" "mbadaddr"
I search in the riscv privilege spec, I got:
(1) sptbr:
I found it does exist in spec of 2016, but in 2021 or 2024:
The machine-mode base-and-bounds translation and protection schemes have been removed
from the specification as part of moving the virtual memory configuration to sptbr (now satp).
Some of the motivation for the base and bound schemes are now covered by the PMP registers, but
space remains available in mstatus to add these back at a later date if deemed useful.
The supervisor virtual memory configuration has been moved from the mstatus register to the
sptbr register. Accordingly, the sptbr register has been renamed to satp (Supervisor Address
Translation and Protection) to reflect its broadened role.
In 2016 spec, 'sptbr' is csr 0x180, and in 2021 spec, csr 0x180 is satp.
(2) sbadaddr:
Still, I found this in spec of 2016, but not anything in spec 2021 or 2024.
But as (1), I find that, in 2021 spec, stval has the same index 0x243 which is same with sbadaddr. AND, they get similar description
So, I GUESS, these two csr were upgraded and renamed, but riscv-tests does't fit the new spec. I try modified the code accordingly and pass compile, but am not sure whether it would result some bugs.
My gcc was configured as:
In general, I use option "--with-arch=rv64gcv" and other options as default.
Then I compile riscv-tests of the newest version:
I got below errors:
In general, some csr registers can't be recognized "sptbr" "sbadaddr" "mbadaddr" I search in the riscv privilege spec, I got: (1) sptbr: I found it does exist in spec of 2016, but in 2021 or 2024:
In 2016 spec, 'sptbr' is csr 0x180, and in 2021 spec, csr 0x180 is satp.
(2) sbadaddr: Still, I found this in spec of 2016, but not anything in spec 2021 or 2024. But as (1), I find that, in 2021 spec, stval has the same index 0x243 which is same with sbadaddr. AND, they get similar description
So, I GUESS, these two csr were upgraded and renamed, but riscv-tests does't fit the new spec. I try modified the code accordingly and pass compile, but am not sure whether it would result some bugs.
Have there any body met this?