mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +01:00
PowerPC: Remove Dead Config Code
This commit is contained in:
parent
c23562b7b5
commit
2b337aec58
@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <istream>
|
|
||||||
#include <ostream>
|
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -61,30 +59,6 @@ static void InvalidateCacheThreadSafe(Core::System& system, u64 userdata, s64 cy
|
|||||||
static_cast<u32>(userdata));
|
static_cast<u32>(userdata));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::istream& operator>>(std::istream& is, CPUCore& core)
|
|
||||||
{
|
|
||||||
std::underlying_type_t<CPUCore> val{};
|
|
||||||
|
|
||||||
if (is >> val)
|
|
||||||
{
|
|
||||||
core = static_cast<CPUCore>(val);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Upon failure, fall back to the cached interpreter
|
|
||||||
// to ensure we always initialize our core reference.
|
|
||||||
core = CPUCore::CachedInterpreter;
|
|
||||||
}
|
|
||||||
|
|
||||||
return is;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, CPUCore core)
|
|
||||||
{
|
|
||||||
os << static_cast<std::underlying_type_t<CPUCore>>(core);
|
|
||||||
return os;
|
|
||||||
}
|
|
||||||
|
|
||||||
PowerPCManager::PowerPCManager(Core::System& system)
|
PowerPCManager::PowerPCManager(Core::System& system)
|
||||||
: m_breakpoints(system), m_memchecks(system), m_debug_interface(system, m_symbol_db),
|
: m_breakpoints(system), m_memchecks(system), m_debug_interface(system, m_symbol_db),
|
||||||
m_system(system)
|
m_system(system)
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <iosfwd>
|
|
||||||
#include <span>
|
#include <span>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
@ -41,10 +40,6 @@ enum class CPUCore
|
|||||||
CachedInterpreter = 5,
|
CachedInterpreter = 5,
|
||||||
};
|
};
|
||||||
|
|
||||||
// For reading from and writing to our config.
|
|
||||||
std::istream& operator>>(std::istream& is, CPUCore& core);
|
|
||||||
std::ostream& operator<<(std::ostream& os, CPUCore core);
|
|
||||||
|
|
||||||
enum class CoreMode
|
enum class CoreMode
|
||||||
{
|
{
|
||||||
Interpreter,
|
Interpreter,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user