cvut / qtrvsim

RISC-V CPU simulator for education purposes
GNU General Public License v3.0
466 stars 56 forks source link

Bug: UnsupportedInstruction #96

Closed ArielHeleneto closed 7 months ago

ArielHeleneto commented 7 months ago

Press "Start Empty" Buttom, you get Figure 1 who have a tons of "Unknown".

Figure 1

Then press "Run" Buttom, it says "UnsupportedInstruction" seen on Figure 2.

Figure 2

Successfully reproduced on v0.9.6. v0.9.5 works fine.

ppisa commented 7 months ago

If you extend instruction area then you can see that unfilled memory content is sequence of zero values (0x00000000). This is intentional that RISC-V ISA does not use this code for valid instruction. So running such memory sequence causes exception. You need to write program and compile it the first. The Example button does that for you to start from some code for demonstration.