Project64-core: General Code clean up
This commit is contained in:
parent
d88ea539b1
commit
7e80d952cb
|
@ -287,7 +287,7 @@ void CInterpreterCPU::ExecuteCPU()
|
|||
continue;
|
||||
}
|
||||
|
||||
if (CDebugSettings::HaveDebugger())
|
||||
if (HaveDebugger())
|
||||
{
|
||||
if (HaveExecutionBP() && g_Debugger->ExecutionBP(PROGRAM_COUNTER))
|
||||
{
|
||||
|
|
|
@ -85,6 +85,7 @@ public:
|
|||
|
||||
int32_t MemoryFilter(uint32_t dwExptCode, void * lpExceptionPointer);
|
||||
void UpdateFieldSerration(uint32_t interlaced);
|
||||
|
||||
#ifndef _WIN32
|
||||
static bool SetupSegvHandler(void);
|
||||
static void segv_handler(int signal, siginfo_t *siginfo, void *sigcontext);
|
||||
|
@ -180,36 +181,25 @@ private:
|
|||
static void DumpArmExceptionInfo(uint32_t MemAddress, mcontext_t & context);
|
||||
static bool FilterArmException(uint32_t MemAddress, mcontext_t & context);
|
||||
#endif
|
||||
void UpdateHalfLine();
|
||||
void FreeMemory();
|
||||
|
||||
// Memory locations
|
||||
static uint8_t * m_Reserve1, *m_Reserve2;
|
||||
uint8_t * m_RDRAM, *m_DMEM, *m_IMEM;
|
||||
uint32_t m_AllocatedRdramSize;
|
||||
|
||||
// ROM information
|
||||
bool m_RomMapped;
|
||||
uint8_t * m_Rom;
|
||||
uint32_t m_RomSize;
|
||||
bool m_RomWrittenTo;
|
||||
uint32_t m_RomWroteValue;
|
||||
|
||||
// DDRom information
|
||||
bool m_DDRomMapped;
|
||||
uint8_t * m_DDRom;
|
||||
uint32_t m_DDRomSize;
|
||||
|
||||
//Current half line
|
||||
void UpdateHalfLine();
|
||||
uint32_t m_HalfLine;
|
||||
uint32_t m_HalfLineCheck;
|
||||
uint32_t m_FieldSerration;
|
||||
|
||||
// Initializing and resetting information about the memory system
|
||||
void FreeMemory();
|
||||
|
||||
mutable char m_strLabelName[100];
|
||||
|
||||
// Big look up table to quickly translate the TLB to real memory addresses
|
||||
size_t * m_TLB_ReadMap;
|
||||
size_t * m_TLB_WriteMap;
|
||||
|
||||
|
|
|
@ -586,6 +586,19 @@ class CRegisters :
|
|||
public:
|
||||
CRegisters(CN64System * System, CSystemEvents * SystemEvents);
|
||||
|
||||
void CheckInterrupts();
|
||||
void DoAddressError( bool DelaySlot, uint32_t BadVaddr, bool FromRead );
|
||||
void DoBreakException( bool DelaySlot );
|
||||
void DoTrapException( bool DelaySlot );
|
||||
void DoCopUnusableException( bool DelaySlot, int32_t Coprocessor );
|
||||
bool DoIntrException( bool DelaySlot );
|
||||
void DoTLBReadMiss(bool DelaySlot, uint32_t BadVaddr);
|
||||
void DoTLBWriteMiss(bool DelaySlot, uint32_t BadVaddr);
|
||||
void DoSysCallException ( bool DelaySlot);
|
||||
void FixFpuLocations();
|
||||
void Reset();
|
||||
void SetAsCurrentSystem();
|
||||
|
||||
// General registers
|
||||
uint32_t m_PROGRAM_COUNTER;
|
||||
MIPS_DWORD m_GPR[32];
|
||||
|
@ -616,19 +629,6 @@ public:
|
|||
uint32_t m_GfxIntrReg;
|
||||
uint32_t m_RspIntrReg;
|
||||
|
||||
void CheckInterrupts();
|
||||
void DoAddressError( bool DelaySlot, uint32_t BadVaddr, bool FromRead );
|
||||
void DoBreakException( bool DelaySlot );
|
||||
void DoTrapException( bool DelaySlot );
|
||||
void DoCopUnusableException( bool DelaySlot, int32_t Coprocessor );
|
||||
bool DoIntrException( bool DelaySlot );
|
||||
void DoTLBReadMiss(bool DelaySlot, uint32_t BadVaddr);
|
||||
void DoTLBWriteMiss(bool DelaySlot, uint32_t BadVaddr);
|
||||
void DoSysCallException ( bool DelaySlot);
|
||||
void FixFpuLocations();
|
||||
void Reset();
|
||||
void SetAsCurrentSystem();
|
||||
|
||||
private:
|
||||
CRegisters();
|
||||
CRegisters(const CRegisters&);
|
||||
|
|
Loading…
Reference in New Issue