DSPAnalyzer: Merge Analyzer namespace into DSP namespace
Now that the Analyzer class fully encapsulates all analyzer state, the namespace is no longer necessary.
This commit is contained in:
parent
9d1c8fe492
commit
f9c488f0d9
|
@ -12,7 +12,7 @@
|
||||||
#include "Core/DSP/DSPCore.h"
|
#include "Core/DSP/DSPCore.h"
|
||||||
#include "Core/DSP/DSPTables.h"
|
#include "Core/DSP/DSPTables.h"
|
||||||
|
|
||||||
namespace DSP::Analyzer
|
namespace DSP
|
||||||
{
|
{
|
||||||
// Good candidates for idle skipping is mail wait loops. If we're time slicing
|
// Good candidates for idle skipping is mail wait loops. If we're time slicing
|
||||||
// between the main CPU and the DSP, if the DSP runs into one of these, it might
|
// between the main CPU and the DSP, if the DSP runs into one of these, it might
|
||||||
|
@ -160,4 +160,4 @@ void Analyzer::AnalyzeRange(u16 start_addr, u16 end_addr)
|
||||||
}
|
}
|
||||||
INFO_LOG_FMT(DSPLLE, "Finished analysis.");
|
INFO_LOG_FMT(DSPLLE, "Finished analysis.");
|
||||||
}
|
}
|
||||||
} // namespace DSP::Analyzer
|
} // namespace DSP
|
||||||
|
|
|
@ -12,8 +12,7 @@ namespace DSP
|
||||||
struct SDSP;
|
struct SDSP;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Basic code analysis.
|
namespace DSP
|
||||||
namespace DSP::Analyzer
|
|
||||||
{
|
{
|
||||||
// Useful things to detect:
|
// Useful things to detect:
|
||||||
// * Loop endpoints - so that we can avoid checking for loops every cycle.
|
// * Loop endpoints - so that we can avoid checking for loops every cycle.
|
||||||
|
@ -102,4 +101,4 @@ private:
|
||||||
// DSP context for analysis to be run under.
|
// DSP context for analysis to be run under.
|
||||||
const SDSP& m_dsp;
|
const SDSP& m_dsp;
|
||||||
};
|
};
|
||||||
} // namespace DSP::Analyzer
|
} // namespace DSP
|
||||||
|
|
|
@ -398,8 +398,8 @@ struct SDSP
|
||||||
void DoState(PointerWrap& p);
|
void DoState(PointerWrap& p);
|
||||||
|
|
||||||
// DSP static analyzer.
|
// DSP static analyzer.
|
||||||
Analyzer::Analyzer& GetAnalyzer() { return m_analyzer; }
|
Analyzer& GetAnalyzer() { return m_analyzer; }
|
||||||
const Analyzer::Analyzer& GetAnalyzer() const { return m_analyzer; }
|
const Analyzer& GetAnalyzer() const { return m_analyzer; }
|
||||||
|
|
||||||
DSP_Regs r{};
|
DSP_Regs r{};
|
||||||
u16 pc = 0;
|
u16 pc = 0;
|
||||||
|
@ -454,7 +454,7 @@ private:
|
||||||
u16 ReadIFXImpl(u16 address);
|
u16 ReadIFXImpl(u16 address);
|
||||||
|
|
||||||
DSPCore& m_dsp_core;
|
DSPCore& m_dsp_core;
|
||||||
Analyzer::Analyzer m_analyzer;
|
Analyzer m_analyzer;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class State
|
enum class State
|
||||||
|
|
Loading…
Reference in New Issue