Open kabylkas opened 4 years ago
Re-reading the section in the ISA manual I got the same impression as you. Thanks for pointing that out. I'll flag it as a bug.
Hi @zarubaf, this issue is rather old, but you've acknowledged it as a bug. Can we get it fixed?
To reproduce
This failure happens when running one of the riscv-isa tests:
rv64ui-v-bltu
.Details
According to ISA spec (from what I understood, I might be wrong),
stval
should be set to0
unless core trapped because one of the following:However, Ariane seems to set the value of
stval
when trapping due toecall
(which is not one of the above). It sets stval to0x73
which is the machine code for ecall instruction. I suspect same maybe true formtval
csr.Here is Dromajo trace (read comments):