DSPAnalyzer: Break tight coupling to SDSP

Allows the analyzer to exist independently of the DSP structure. This
allows for unit-tests to be created in a nicer manner.

SDSP is only necessary during the analysis phase, so we only need to
keep a reference around to it then as opposed to the entire lifecycle of
the analyzer.

This also allows the copy/move assignment operators to be defaulted, as
a reference member variable prevents that.
This commit is contained in:
Lioncash
2020-12-28 11:51:25 -05:00
parent f9c488f0d9
commit cc512a7524
4 changed files with 16 additions and 22 deletions

View File

@ -93,7 +93,7 @@ void CodeLoaded(DSPCore& dsp, const u8* ptr, size_t size)
UpdateDebugger();
dsp.ClearIRAM();
state.GetAnalyzer().Analyze();
state.GetAnalyzer().Analyze(state);
}
void UpdateDebugger()