Skip to content

Commit

Permalink
n64: Don't report interrupt exceptions to GDB
Browse files Browse the repository at this point in the history
Interrupt exceptions fire multiple times per second and having to ack all of them can cause performance issues while debugging.
  • Loading branch information
flagrama authored and LukeUsher committed Feb 6, 2025
1 parent b372f65 commit bb22386
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ares/n64/cpu/exceptions.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
auto CPU::Exception::trigger(u32 code, u32 coprocessor, bool tlbMiss) -> void {
self.debugger.exception(code);
reportGDBException(code, self.ipu.pc);
if (code != 0) { //ignore interrupt exceptions
reportGDBException(code, self.ipu.pc);
}

u64 vectorBase = !self.scc.status.vectorLocation ? (s32)0x8000'0000 : (s32)0xbfc0'0200;

Expand Down

0 comments on commit bb22386

Please sign in to comment.