mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
Cleanup.
This commit is contained in:
parent
856ee23e83
commit
e283a2fc79
6 changed files with 5 additions and 23 deletions
|
@ -448,10 +448,8 @@ MIPS_BRANCH_TYPE CCOP_FPU::IsBranch(uint32 nOpcode)
|
|||
|
||||
uint32 CCOP_FPU::GetEffectiveAddress(uint32 nAddress, uint32 nOpcode)
|
||||
{
|
||||
if(nOpcode == 0) return 0;
|
||||
|
||||
INSTRUCTION Instr;
|
||||
Instr.pGetEffectiveAddress = SubTableEffAddr;
|
||||
Instr.pSubTable = &m_reflGeneralTable;
|
||||
return Instr.pGetEffectiveAddress(&Instr, NULL, nAddress, nOpcode);
|
||||
return Instr.pGetEffectiveAddress(&Instr, nullptr, nAddress, nOpcode);
|
||||
}
|
||||
|
|
|
@ -443,10 +443,8 @@ MIPS_BRANCH_TYPE CCOP_SCU::IsBranch(uint32 nOpcode)
|
|||
|
||||
uint32 CCOP_SCU::GetEffectiveAddress(uint32 nAddress, uint32 nOpcode)
|
||||
{
|
||||
if(nOpcode == 0) return 0;
|
||||
|
||||
INSTRUCTION Instr;
|
||||
Instr.pGetEffectiveAddress = SubTableEffAddr;
|
||||
Instr.pSubTable = &m_ReflGeneralTable;
|
||||
return Instr.pGetEffectiveAddress(&Instr, NULL, nAddress, nOpcode);
|
||||
return Instr.pGetEffectiveAddress(&Instr, nullptr, nAddress, nOpcode);
|
||||
}
|
||||
|
|
|
@ -498,9 +498,6 @@ MIPS_BRANCH_TYPE CMA_MIPSIV::IsInstructionBranch(CMIPS* pCtx, uint32 nAddress, u
|
|||
uint32 CMA_MIPSIV::GetInstructionEffectiveAddress(CMIPS* pCtx, uint32 nAddress, uint32 nOpcode)
|
||||
{
|
||||
INSTRUCTION Instr;
|
||||
|
||||
if(nOpcode == 0) return 0;
|
||||
|
||||
Instr.pGetEffectiveAddress = SubTableEffAddr;
|
||||
Instr.pSubTable = &m_ReflGeneralTable;
|
||||
return Instr.pGetEffectiveAddress(&Instr, pCtx, nAddress, nOpcode);
|
||||
|
|
|
@ -4,7 +4,3 @@ CMIPSCoprocessor::CMIPSCoprocessor(MIPS_REGSIZE nRegSize)
|
|||
: CMIPSInstructionFactory(nRegSize)
|
||||
{
|
||||
}
|
||||
|
||||
CMIPSCoprocessor::~CMIPSCoprocessor()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef _MIPSCOPROCESSOR_H_
|
||||
#define _MIPSCOPROCESSOR_H_
|
||||
#pragma once
|
||||
|
||||
#include "MIPSInstructionFactory.h"
|
||||
|
||||
|
@ -7,11 +6,9 @@ class CMIPSCoprocessor : public CMIPSInstructionFactory
|
|||
{
|
||||
public:
|
||||
CMIPSCoprocessor(MIPS_REGSIZE);
|
||||
virtual ~CMIPSCoprocessor();
|
||||
virtual ~CMIPSCoprocessor() = default;
|
||||
virtual void GetInstruction(uint32, char*) = 0;
|
||||
virtual void GetArguments(uint32, uint32, char*) = 0;
|
||||
virtual uint32 GetEffectiveAddress(uint32, uint32) = 0;
|
||||
virtual MIPS_BRANCH_TYPE IsBranch(uint32) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -560,12 +560,8 @@ MIPS_BRANCH_TYPE CCOP_VU::IsBranch(uint32 nOpcode)
|
|||
|
||||
uint32 CCOP_VU::GetEffectiveAddress(uint32 nAddress, uint32 nOpcode)
|
||||
{
|
||||
if(nOpcode == 0) return 0;
|
||||
|
||||
CMIPS* pCtx = NULL;
|
||||
|
||||
INSTRUCTION Instr;
|
||||
Instr.pGetEffectiveAddress = SubTableEffAddr;
|
||||
Instr.pSubTable = &m_ReflGeneralTable;
|
||||
return Instr.pGetEffectiveAddress(&Instr, pCtx, nAddress, nOpcode);
|
||||
return Instr.pGetEffectiveAddress(&Instr, nullptr, nAddress, nOpcode);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue