project64/Source/Project64-rsp-core/cpu/RspLog.h

36 lines
725 B
C
Raw Normal View History

2023-08-16 23:29:22 +00:00
#pragma once
#include <stdint.h>
2016-01-27 09:11:59 +00:00
void StartCPULog(void);
void StopCPULog(void);
void CPU_Message(const char * Message, ...);
class CRSPSystem;
class CLog;
class CRDPLog
{
public:
CRDPLog(CRSPSystem & System);
void StartLog(void);
void StopLog(void);
void Message(const char * Message, ...);
void LogDlist(void);
void LogMT0(uint32_t PC, int Reg, uint32_t Value);
void LogMF0(uint32_t PC, int Reg);
private:
CRSPSystem & m_System;
CLog * m_Log;
uint32_t *& m_DPC_START_REG;
uint32_t *& m_DPC_END_REG;
uint32_t *& m_DPC_CURRENT_REG;
uint32_t *& m_DPC_STATUS_REG;
uint32_t *& m_DPC_CLOCK_REG;
uint8_t *& m_RDRAM;
uint8_t *& m_DMEM;
};
extern CRDPLog RDPLog;