GTE: Remove unneded CPU ref

This commit is contained in:
Blue 2021-02-26 16:39:03 +01:00
parent 0efcca7fd3
commit b1fc62d532
2 changed files with 2 additions and 5 deletions

View file

@ -83,8 +83,9 @@ namespace ProjectPSX {
this.bus = bus;
bios = new BIOS_Disassembler(bus);
mips = new MIPS_Disassembler(ref HI, ref LO, GPR, COP0_GPR);
gte = new GTE();
COP0_GPR[15] = 0x2; //PRID Processor ID
gte = new GTE(this); //debug
initOpCodeTable();
}

View file

@ -86,10 +86,6 @@ namespace ProjectPSX {
private uint MVMVA_T_Vector; //MVMVA Translation Vector (0=TR, 1=BK, 2=FC/Bugged, 3=None)
private bool lm; //Saturate IR1,IR2,IR3 result (0=To -8000h..+7FFFh, 1=To 0..+7FFFh)
private uint opcode; //GTE opcode
private CPU cpu;
public GTE(CPU cpu) {//this is only needed for temporary debug purposes till TGTE passes
this.cpu = cpu;
}
private void decodeCommand(uint command) {
sf = (int)(command & 0x80_000) >> 19;