AntonLydike / riscemu

RISC-V emulator in python
MIT License
48 stars 13 forks source link

Integer wrapping incorrect for large numbers #11

Closed tobiasgrosser closed 2 years ago

tobiasgrosser commented 2 years ago

Integer wrapping is till incorrect for large numbers. E.g. the result for 2^30 * 2^30 overflows more than the constant that is subtracted in case of overflow.

AntonLydike commented 2 years ago

Do you have a specific example? And are you sure that you are running the latest version? I can't reproduce that:

grafik

If you installed through pip, you can get a new version using the pip install --upgrade riscemu flag

tobiasgrosser commented 2 years ago

Indeed. Thank you.