[Project64] Rename Generate log to Log asm
This commit is contained in:
parent
2cfaffcfea
commit
df36516c6d
|
@ -1734,7 +1734,6 @@ bool CN64System::LoadState(const char * FileName)
|
|||
{
|
||||
port = unzGoToFirstFile(file);
|
||||
}
|
||||
uint32_t Value;
|
||||
while (port == UNZ_OK)
|
||||
{
|
||||
unz_file_info info;
|
||||
|
@ -1924,7 +1923,7 @@ bool CN64System::LoadState(const char * FileName)
|
|||
WriteTrace(TraceN64System, TraceDebug, "8");
|
||||
m_FPS.Reset(true);
|
||||
WriteTrace(TraceN64System, TraceDebug, "9");
|
||||
if (bLogX86Code())
|
||||
if (bRecordRecompilerAsm())
|
||||
{
|
||||
Stop_Recompiler_Log();
|
||||
Start_Recompiler_Log();
|
||||
|
|
|
@ -4807,7 +4807,7 @@ bool CArmRecompilerOps::SetupRegisterForLoop(CCodeBlock * BlockInfo, const CRegI
|
|||
|
||||
void CArmRecompilerOps::OutputRegisterState(const CRegInfo & SyncTo, const CRegInfo & CurrentSet) const
|
||||
{
|
||||
if (!g_bRecompilerLogging)
|
||||
if (!CDebugSettings::bRecordRecompilerAsm())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -767,7 +767,7 @@ CArmOps::ArmReg CArmRegInfo::FreeArmReg(bool TempMapping)
|
|||
|
||||
void CArmRegInfo::LogRegisterState(void)
|
||||
{
|
||||
if (!g_bRecompilerLogging)
|
||||
if (!CDebugSettings::bRecordRecompilerAsm())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1085,7 +1085,7 @@ bool CCodeSection::IsAllParentLoops(CCodeSection * Parent, bool IgnoreIfCompiled
|
|||
|
||||
bool CCodeSection::DisplaySectionInformation(uint32_t ID, uint32_t Test)
|
||||
{
|
||||
if (!g_bRecompilerLogging)
|
||||
if (!CDebugSettings::bRecordRecompilerAsm())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -1109,12 +1109,12 @@ void CCodeSection::DisplaySectionInformation()
|
|||
}
|
||||
|
||||
CPU_Message("====== Section %d ======", m_SectionID);
|
||||
CPU_Message("Start PC: %X", m_EnterPC);
|
||||
CPU_Message("Start PC: 0x%X", m_EnterPC);
|
||||
if (g_System->bLinkBlocks())
|
||||
{
|
||||
CPU_Message("End PC: %X", m_EndPC);
|
||||
CPU_Message("End PC: 0x%X", m_EndPC);
|
||||
}
|
||||
CPU_Message("CompiledLocation: %X", m_CompiledLocation);
|
||||
CPU_Message("CompiledLocation: 0x%X", m_CompiledLocation);
|
||||
if (g_System->bLinkBlocks() && !m_ParentSection.empty())
|
||||
{
|
||||
stdstr ParentList;
|
||||
|
|
|
@ -37,7 +37,7 @@ void CRecompiler::Run()
|
|||
{
|
||||
WriteTrace(TraceRecompiler, TraceDebug, "Start");
|
||||
|
||||
if (bLogX86Code())
|
||||
if (bRecordRecompilerAsm())
|
||||
{
|
||||
Start_Recompiler_Log();
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <Common/Platform.h>
|
||||
|
||||
static CLog * g_CPULogFile = NULL;
|
||||
bool g_bRecompilerLogging = false;
|
||||
|
||||
void Recompiler_Log_Message(const char * strFormat, ...)
|
||||
{
|
||||
|
@ -45,7 +44,6 @@ void Start_Recompiler_Log (void)
|
|||
if (g_CPULogFile->Open(LogFileName))
|
||||
{
|
||||
g_CPULogFile->SetMaxFileSize(300 * CLog::MB);
|
||||
g_bRecompilerLogging = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -57,7 +55,6 @@ void Start_Recompiler_Log (void)
|
|||
|
||||
void Stop_Recompiler_Log (void)
|
||||
{
|
||||
g_bRecompilerLogging = false;
|
||||
if (g_CPULogFile != NULL)
|
||||
{
|
||||
delete g_CPULogFile;
|
||||
|
|
|
@ -9,15 +9,10 @@
|
|||
* *
|
||||
****************************************************************************/
|
||||
#pragma once
|
||||
#include <Project64-core/Settings/DebugSettings.h>
|
||||
|
||||
/* vsprintf() needs to have both of these included. */
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#define CPU_Message(Message,... ) if (g_bRecompilerLogging) { Recompiler_Log_Message(Message,## __VA_ARGS__); }
|
||||
#define CPU_Message(Message,... ) if (CDebugSettings::bRecordRecompilerAsm()) { Recompiler_Log_Message(Message,## __VA_ARGS__); }
|
||||
|
||||
void Recompiler_Log_Message (const char * Message, ...);
|
||||
void Start_Recompiler_Log (void);
|
||||
void Stop_Recompiler_Log (void);
|
||||
|
||||
extern bool g_bRecompilerLogging;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
int CDebugSettings::m_RefCount = 0;
|
||||
|
||||
bool CDebugSettings::m_bHaveDebugger = false;
|
||||
bool CDebugSettings::m_bLogX86Code = false;
|
||||
bool CDebugSettings::m_bRecordRecompilerAsm = false;
|
||||
bool CDebugSettings::m_bShowTLBMisses = false;
|
||||
bool CDebugSettings::m_bShowDivByZero = false;
|
||||
bool CDebugSettings::m_Registered = false;
|
||||
|
@ -27,7 +27,7 @@ CDebugSettings::CDebugSettings()
|
|||
{
|
||||
m_Registered = true;
|
||||
g_Settings->RegisterChangeCB(Debugger_Enabled, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
||||
g_Settings->RegisterChangeCB(Debugger_GenerateLogFiles, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
||||
g_Settings->RegisterChangeCB(Debugger_RecordRecompilerAsm, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
||||
g_Settings->RegisterChangeCB(Debugger_ShowTLBMisses, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
||||
g_Settings->RegisterChangeCB(Debugger_ShowDivByZero, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
||||
g_Settings->RegisterChangeCB(Debugger_RecordExecutionTimes, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
||||
|
@ -42,7 +42,7 @@ CDebugSettings::~CDebugSettings()
|
|||
if (m_RefCount == 0 && g_Settings)
|
||||
{
|
||||
g_Settings->UnregisterChangeCB(Debugger_Enabled, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
||||
g_Settings->UnregisterChangeCB(Debugger_GenerateLogFiles, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
||||
g_Settings->UnregisterChangeCB(Debugger_RecordRecompilerAsm, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
||||
g_Settings->UnregisterChangeCB(Debugger_ShowTLBMisses, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
||||
g_Settings->UnregisterChangeCB(Debugger_ShowDivByZero, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
||||
g_Settings->UnregisterChangeCB(Debugger_RecordExecutionTimes, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
||||
|
@ -52,7 +52,7 @@ CDebugSettings::~CDebugSettings()
|
|||
void CDebugSettings::RefreshSettings()
|
||||
{
|
||||
m_bHaveDebugger = g_Settings->LoadBool(Debugger_Enabled);
|
||||
m_bLogX86Code = m_bHaveDebugger && g_Settings->LoadBool(Debugger_GenerateLogFiles);
|
||||
m_bRecordRecompilerAsm = m_bHaveDebugger && g_Settings->LoadBool(Debugger_RecordRecompilerAsm);
|
||||
m_bShowTLBMisses = m_bHaveDebugger && g_Settings->LoadBool(Debugger_ShowTLBMisses);
|
||||
m_bShowDivByZero = m_bHaveDebugger && g_Settings->LoadBool(Debugger_ShowDivByZero);
|
||||
m_RecordExecutionTimes = g_Settings->LoadBool(Debugger_RecordExecutionTimes);
|
||||
|
|
|
@ -19,7 +19,7 @@ public:
|
|||
virtual ~CDebugSettings();
|
||||
|
||||
static inline bool bHaveDebugger(void) { return m_bHaveDebugger; }
|
||||
static inline bool bLogX86Code(void) { return m_bLogX86Code; }
|
||||
static inline bool bRecordRecompilerAsm(void) { return m_bRecordRecompilerAsm; }
|
||||
static inline bool bShowTLBMisses(void) { return m_bShowTLBMisses; }
|
||||
static inline bool bShowDivByZero(void) { return m_bShowDivByZero; }
|
||||
static inline bool bRecordExecutionTimes(void) { return m_RecordExecutionTimes; }
|
||||
|
@ -34,7 +34,7 @@ private:
|
|||
|
||||
//Settings that can be changed on the fly
|
||||
static bool m_bHaveDebugger;
|
||||
static bool m_bLogX86Code;
|
||||
static bool m_bRecordRecompilerAsm;
|
||||
static bool m_bShowTLBMisses;
|
||||
static bool m_bShowDivByZero;
|
||||
static bool m_RecordExecutionTimes;
|
||||
|
|
|
@ -214,7 +214,7 @@ enum SettingID
|
|||
Debugger_ShowUnhandledMemory,
|
||||
Debugger_ShowPifErrors,
|
||||
Debugger_ShowDivByZero,
|
||||
Debugger_GenerateLogFiles,
|
||||
Debugger_RecordRecompilerAsm,
|
||||
Debugger_DisableGameFixes,
|
||||
Debugger_AppLogLevel,
|
||||
Debugger_AppLogFlush,
|
||||
|
|
|
@ -310,7 +310,7 @@ void CSettings::AddHowToHandleSetting(const char * BaseDirectory)
|
|||
AddHandler(Debugger_DebugLanguage, new CSettingTypeApplication("Debugger", "Debug Language", false));
|
||||
AddHandler(Debugger_ShowDivByZero, new CSettingTypeApplication("Debugger", "Show Div by zero", false));
|
||||
AddHandler(Debugger_AppLogFlush, new CSettingTypeApplication("Logging", "Log Auto Flush", (uint32_t)false));
|
||||
AddHandler(Debugger_GenerateLogFiles, new CSettingTypeApplication("Debugger", "Generate Log Files", false));
|
||||
AddHandler(Debugger_RecordRecompilerAsm, new CSettingTypeApplication("Debugger", "Record Recompiler Asm", false));
|
||||
|
||||
//Logging
|
||||
AddHandler(Debugger_TraceMD5, new CSettingTypeApplication("Logging", "MD5", (uint32_t)g_ModuleLogLevel[TraceMD5]));
|
||||
|
|
|
@ -28,7 +28,7 @@ m_Gui(hMainWindow)
|
|||
m_ChangeSettingList.push_back(Debugger_DebugLanguage);
|
||||
m_ChangeSettingList.push_back(Debugger_ShowRecompMemSize);
|
||||
m_ChangeSettingList.push_back(Debugger_ShowDivByZero);
|
||||
m_ChangeSettingList.push_back(Debugger_GenerateLogFiles);
|
||||
m_ChangeSettingList.push_back(Debugger_RecordRecompilerAsm);
|
||||
m_ChangeSettingList.push_back(Debugger_DisableGameFixes);
|
||||
m_ChangeSettingList.push_back(Debugger_TraceMD5);
|
||||
m_ChangeSettingList.push_back(Debugger_TraceSettings);
|
||||
|
@ -508,8 +508,8 @@ bool CMainMenu::ProcessMessage(HWND hWnd, DWORD /*FromAccelerator*/, DWORD MenuI
|
|||
case ID_DEBUG_SHOW_DIV_BY_ZERO:
|
||||
g_Settings->SaveBool(Debugger_ShowDivByZero, !g_Settings->LoadBool(Debugger_ShowDivByZero));
|
||||
break;
|
||||
case ID_DEBUG_GENERATE_LOG_FILES:
|
||||
g_Settings->SaveBool(Debugger_GenerateLogFiles, !g_Settings->LoadBool(Debugger_GenerateLogFiles));
|
||||
case ID_DEBUG_RECORD_RECOMPILER_ASM:
|
||||
g_Settings->SaveBool(Debugger_RecordRecompilerAsm, !g_Settings->LoadBool(Debugger_RecordRecompilerAsm));
|
||||
break;
|
||||
case ID_DEBUG_DISABLE_GAMEFIX:
|
||||
g_Settings->SaveBool(Debugger_DisableGameFixes, !g_Settings->LoadBool(Debugger_DisableGameFixes));
|
||||
|
@ -1240,8 +1240,8 @@ void CMainMenu::FillOutMenu(HMENU hMenu)
|
|||
}
|
||||
DebugMenu.push_back(Item);
|
||||
DebugMenu.push_back(MENU_ITEM(SPLITER));
|
||||
Item.Reset(ID_DEBUG_GENERATE_LOG_FILES, EMPTY_STRING, EMPTY_STDSTR, NULL, L"Generate Log Files");
|
||||
if (g_Settings->LoadBool(Debugger_GenerateLogFiles))
|
||||
Item.Reset(ID_DEBUG_RECORD_RECOMPILER_ASM, EMPTY_STRING, EMPTY_STDSTR, NULL, L"Record Recompiler Asm");
|
||||
if (g_Settings->LoadBool(Debugger_RecordRecompilerAsm))
|
||||
{
|
||||
Item.SetItemTicked(true);
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ enum MainMenuID
|
|||
//Debugger Menu
|
||||
ID_DEBUG_SHOW_TLB_MISSES, ID_DEBUG_SHOW_UNHANDLED_MEM, ID_DEBUG_SHOW_PIF_ERRORS,
|
||||
ID_DEBUG_SHOW_DLIST_COUNT, ID_DEBUG_SHOW_RECOMP_MEM_SIZE, ID_DEBUG_SHOW_DIV_BY_ZERO,
|
||||
ID_DEBUG_GENERATE_LOG_FILES, ID_DEBUG_DISABLE_GAMEFIX, ID_DEBUG_LANGUAGE,
|
||||
ID_DEBUG_RECORD_RECOMPILER_ASM, ID_DEBUG_DISABLE_GAMEFIX, ID_DEBUG_LANGUAGE,
|
||||
ID_DEBUGGER_LOGOPTIONS, ID_DEBUGGER_GENERATELOG, ID_DEBUGGER_DUMPMEMORY, ID_DEBUGGER_SEARCHMEMORY,
|
||||
ID_DEBUGGER_TLBENTRIES, ID_DEBUGGER_BREAKPOINTS, ID_DEBUGGER_MEMORY, ID_DEBUGGER_R4300REGISTERS,
|
||||
ID_DEBUGGER_INTERRUPT_SP, ID_DEBUGGER_INTERRUPT_SI, ID_DEBUGGER_INTERRUPT_AI, ID_DEBUGGER_INTERRUPT_VI,
|
||||
|
|
Loading…
Reference in New Issue