mirror of https://github.com/PCSX2/pcsx2.git
Qt: Log machine caps on startup
This commit is contained in:
parent
1927896442
commit
80cc2f0cb7
|
@ -236,7 +236,7 @@ void EmuThread::run()
|
||||||
m_event_loop = new QEventLoop();
|
m_event_loop = new QEventLoop();
|
||||||
m_started_semaphore.release();
|
m_started_semaphore.release();
|
||||||
|
|
||||||
if (!VMManager::InitializeMemory())
|
if (!VMManager::Internal::InitializeMemory())
|
||||||
pxFailRel("Failed to allocate memory map");
|
pxFailRel("Failed to allocate memory map");
|
||||||
|
|
||||||
// we need input sources ready for binding
|
// we need input sources ready for binding
|
||||||
|
@ -258,7 +258,7 @@ void EmuThread::run()
|
||||||
stopBackgroundControllerPollTimer();
|
stopBackgroundControllerPollTimer();
|
||||||
destroyBackgroundControllerPollTimer();
|
destroyBackgroundControllerPollTimer();
|
||||||
InputManager::CloseSources();
|
InputManager::CloseSources();
|
||||||
VMManager::ReleaseMemory();
|
VMManager::Internal::ReleaseMemory();
|
||||||
PerformanceMetrics::SetCPUThreadTimer(Common::ThreadCPUTimer());
|
PerformanceMetrics::SetCPUThreadTimer(Common::ThreadCPUTimer());
|
||||||
moveToThread(m_ui_thread);
|
moveToThread(m_ui_thread);
|
||||||
deleteLater();
|
deleteLater();
|
||||||
|
|
|
@ -82,6 +82,9 @@ bool QtHost::Initialize()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!VMManager::Internal::InitializeGlobals())
|
||||||
|
return false;
|
||||||
|
|
||||||
HookSignals();
|
HookSignals();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,16 +173,20 @@ std::string VMManager::GetGameName()
|
||||||
return s_game_name;
|
return s_game_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool VMManager::InitializeMemory()
|
bool VMManager::Internal::InitializeGlobals()
|
||||||
{
|
{
|
||||||
pxAssert(!s_vm_memory && !s_cpu_provider_pack);
|
|
||||||
|
|
||||||
#ifdef _M_X86
|
|
||||||
x86caps.Identify();
|
x86caps.Identify();
|
||||||
x86caps.CountCores();
|
x86caps.CountCores();
|
||||||
x86caps.SIMD_EstablishMXCSRmask();
|
x86caps.SIMD_EstablishMXCSRmask();
|
||||||
x86caps.CalculateMHz();
|
x86caps.CalculateMHz();
|
||||||
#endif
|
SysLogMachineCaps();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool VMManager::Internal::InitializeMemory()
|
||||||
|
{
|
||||||
|
pxAssert(!s_vm_memory && !s_cpu_provider_pack);
|
||||||
|
|
||||||
s_vm_memory = std::make_unique<SysMainMemory>();
|
s_vm_memory = std::make_unique<SysMainMemory>();
|
||||||
s_cpu_provider_pack = std::make_unique<SysCpuProviderPack>();
|
s_cpu_provider_pack = std::make_unique<SysCpuProviderPack>();
|
||||||
|
@ -191,7 +195,7 @@ bool VMManager::InitializeMemory()
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void VMManager::ReleaseMemory()
|
void VMManager::Internal::ReleaseMemory()
|
||||||
{
|
{
|
||||||
std::vector<u8>().swap(s_widescreen_cheats_data);
|
std::vector<u8>().swap(s_widescreen_cheats_data);
|
||||||
s_widescreen_cheats_loaded = false;
|
s_widescreen_cheats_loaded = false;
|
||||||
|
|
|
@ -72,12 +72,6 @@ namespace VMManager
|
||||||
/// Returns the name of the disc/executable currently running.
|
/// Returns the name of the disc/executable currently running.
|
||||||
std::string GetGameName();
|
std::string GetGameName();
|
||||||
|
|
||||||
/// Reserves memory for the virtual machines.
|
|
||||||
bool InitializeMemory();
|
|
||||||
|
|
||||||
/// Completely releases all memory for the virtual machine.
|
|
||||||
void ReleaseMemory();
|
|
||||||
|
|
||||||
/// Initializes all system components.
|
/// Initializes all system components.
|
||||||
bool Initialize(const VMBootParameters& boot_params);
|
bool Initialize(const VMBootParameters& boot_params);
|
||||||
|
|
||||||
|
@ -149,6 +143,15 @@ namespace VMManager
|
||||||
/// Internal callbacks, implemented in the emu core.
|
/// Internal callbacks, implemented in the emu core.
|
||||||
namespace Internal
|
namespace Internal
|
||||||
{
|
{
|
||||||
|
/// Performs early global initialization.
|
||||||
|
bool InitializeGlobals();
|
||||||
|
|
||||||
|
/// Reserves memory for the virtual machines.
|
||||||
|
bool InitializeMemory();
|
||||||
|
|
||||||
|
/// Completely releases all memory for the virtual machine.
|
||||||
|
void ReleaseMemory();
|
||||||
|
|
||||||
const std::string& GetElfOverride();
|
const std::string& GetElfOverride();
|
||||||
bool IsExecutionInterrupted();
|
bool IsExecutionInterrupted();
|
||||||
void GameStartingOnCPUThread();
|
void GameStartingOnCPUThread();
|
||||||
|
|
Loading…
Reference in New Issue