sysprog21 / semu

A minimalist RISC-V system emulator capable of running Linux kernel
MIT License
251 stars 47 forks source link

Implement more RV64M instructions #12

Closed gagachang closed 2 years ago

gagachang commented 2 years ago

Implements more RV64M instructions and adds corresponding tests. Now the result of tests becomes:

[ RUN      ] rv64ua-p-lrsc
  a0 = 0x80002008
  tohost = 0x53b
  An exception occurred.
[  FAILED  ] rv64ua-p-lrsc
[==========] 83 test(s) from riscv-tests ran.
[  PASSED  ] 67 test(s).
[  FAILED  ] 16 test(s), listed below:
[  FAILED  ] rv64ui-p-fence_i
[  FAILED  ] rv64ua-p-amoand_d