lemmy-64 / n64-systemtest

Tests a wide variety of N64 features, from common to hardware quirks. Written in Rust. Executes quickly.
MIT License
63 stars 9 forks source link

Add test for JALR to invalid address #67

Open rasky opened 9 months ago

rasky commented 9 months ago

An emulator reported they were passing the current testsuite but they had the following bug: if JALR jumped to an invalid address (causing TLB miss), $ra wasn’t being set with the return address.

rasky commented 9 months ago

Probably just need to get a copy of $4 here and check its value:

https://github.com/lemmy-64/n64-systemtest/blob/d43b8dcf17a933348f8b155e22c471c6e984185a/src/tests/tlb/exceptions.rs#L322-L327