From 949ca7756b4badce24883496aa575e6cf1a58f90 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sat, 10 Dec 2022 14:15:25 -0800 Subject: [PATCH] DSPAnalyzer: Clarify CODE_CHECK_EXC --- Source/Core/Core/DSP/DSPAnalyzer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/DSP/DSPAnalyzer.cpp b/Source/Core/Core/DSP/DSPAnalyzer.cpp index a62de02771..619e8112de 100644 --- a/Source/Core/Core/DSP/DSPAnalyzer.cpp +++ b/Source/Core/Core/DSP/DSPAnalyzer.cpp @@ -133,8 +133,10 @@ void Analyzer::FindInstructionStarts(const SDSP& dsp, u16 start_addr, u16 end_ad } #endif - // If an instruction potentially raises exceptions, mark the following - // instruction as needing to check for exceptions + // If an instruction potentially raises exceptions, mark the following instruction as needing to + // check for exceptions. This code is only looking for the accelerator address overflow + // exception, so the following instructions are checked: LR, LRR/LRRD/LRRI/LRRN, LRS, and + // extended opcodes. if (opcode->opcode == 0x00c0 || opcode->opcode == 0x1800 || opcode->opcode == 0x1880 || opcode->opcode == 0x1900 || opcode->opcode == 0x1980 || opcode->opcode == 0x2000 || opcode->extended)