You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An illegal instruction exception should be raised when accessing a non-existent CSR, as described in Chapter 3.6.1 of RISC-V Privileged Architectures.
Attempts to access a non-existent CSR raise an illegal instruction exception.
For example, csrr t0, 0x394 is a instruction to access a CSR with address 0x394 that does not exist.
Therefore, this instruction should raise an illegal instruction exception, but in the current RSD, this instruction is executed normally without raising an illegal instruction exception. This issue applies to other CSRs as well.
Steps to reproduce the issue
When executing an instruction that accesses a non-existent CSR, as shown in the following code, you can confirm that the illegal instruction executes normally without raising an illegal instruction exception.
intmain(void){
asm volatile ("csrr t0, 0x394");
}
The text was updated successfully, but these errors were encountered:
Observed Behavior
An illegal instruction exception should be raised when accessing a non-existent CSR, as described in Chapter 3.6.1 of RISC-V Privileged Architectures.
For example,
csrr t0, 0x394
is a instruction to access a CSR with address0x394
that does not exist.Therefore, this instruction should raise an illegal instruction exception, but in the current RSD, this instruction is executed normally without raising an illegal instruction exception. This issue applies to other CSRs as well.
Steps to reproduce the issue
When executing an instruction that accesses a non-existent CSR, as shown in the following code, you can confirm that the illegal instruction executes normally without raising an illegal instruction exception.
The text was updated successfully, but these errors were encountered: