diff --git a/Core/CPU.cpp b/Core/CPU.cpp index a0abe65ff6..923971085e 100644 --- a/Core/CPU.cpp +++ b/Core/CPU.cpp @@ -20,6 +20,6 @@ // See the MIPS folder, the real stuff is there. -CPU *currentCPU = 0; +MIPSState *currentCPU = 0; int numCPUs; diff --git a/Core/CPU.h b/Core/CPU.h index 06ce01a3e4..ebc28caffb 100644 --- a/Core/CPU.h +++ b/Core/CPU.h @@ -28,24 +28,9 @@ enum GPR_SIZE_64=1 }; -enum CPUType -{ - CPUTYPE_INVALID=0, - CPUTYPE_ALLEGREX=1, - CPUTYPE_ME=2, -}; - -class CPU -{ -private: - u32 id; -public: - virtual void SingleStep() = 0; - virtual int RunLoopUntil(u64 globalTicks) = 0; -}; - #define MAX_NUM_CPU 2 +class MIPSState; -extern CPU *currentCPU; +extern MIPSState *currentCPU; extern int numCPUs; diff --git a/Core/MIPS/ARM/ArmJit.cpp b/Core/MIPS/ARM/ArmJit.cpp index e15a78f3ca..1cf1edbb1e 100644 --- a/Core/MIPS/ARM/ArmJit.cpp +++ b/Core/MIPS/ARM/ArmJit.cpp @@ -135,8 +135,8 @@ const u8 *Jit::DoJit(u32 em_address, ArmJitBlock *b) b->codeSize = GetCodePtr() - b->normalEntry; #ifdef LOGASM - for (int i = 0; i < b->codeSize; i += 4) { - const u32 *codePtr = (const u32 *)(b->normalEntry + i); + for (int i = 0; i < GetCodePtr() - b->checkedEntry; i += 4) { + const u32 *codePtr = (const u32 *)(b->checkedEntry + i); u32 inst = *codePtr; ArmDis((u32)codePtr, inst, temp); INFO_LOG(DYNA_REC, "A: %s", temp); diff --git a/Core/MIPS/MIPS.h b/Core/MIPS/MIPS.h index 92c440e606..4f769301fe 100644 --- a/Core/MIPS/MIPS.h +++ b/Core/MIPS/MIPS.h @@ -104,7 +104,7 @@ private: u32 m_z; }; -class MIPSState : public CPU +class MIPSState { public: MIPSState(); diff --git a/Core/MIPS/MIPSDebugInterface.cpp b/Core/MIPS/MIPSDebugInterface.cpp index 6c4d7d3d07..c925aaff51 100644 --- a/Core/MIPS/MIPSDebugInterface.cpp +++ b/Core/MIPS/MIPSDebugInterface.cpp @@ -28,7 +28,7 @@ const char *MIPSDebugInterface::disasm(unsigned int address, unsigned int align) { - CPU *x = currentCPU; + MIPSState *x = currentCPU; currentCPU = cpu; static char mojs[256];