mortbopet / Ripes

A graphical processor simulator and assembly editor for the RISC-V ISA
https://ripes.me/
MIT License
2.49k stars 270 forks source link

unreachable code for REMU in rv_alu.h #361

Closed ilyakurdyukov closed 2 months ago

ilyakurdyukov commented 3 months ago

https://github.com/mortbopet/Ripes/blob/878087332afa3558dc8ca657f80a16ecdcf82818/src/processors/RISC-V/rv_alu.h#L105

This is literally unreachable code that was copied from DIV to REMU. GCC seems to be blind to notice this, but the EDG frontend sees this.

mortbopet commented 2 months ago

Thank you for noticing; fixed in 0af6a3f.