Compile the cache instruction to nothing.

Was showing up in a few profiles, does nothing currently.
This commit is contained in:
Unknown W. Brackets committed 2013-11-10 14:38:10 -08:00
1 parent 1cc68f50ca
commit 455a7e090d
7 files changed
+20 -1

No files matched your search

+6
View File
@@ -376,4 +376,10 @@ namespace MIPSComp
}
}
void Jit::Comp_Cache(MIPSOpcode op) {
CONDITIONAL_DISABLE;
// TODO: Could use this as a hint, and technically required to handle icache, etc.
// But right now Int_Cache does nothing, so let's not even call it.
}
}
+1
View File
@@ -67,6 +67,7 @@ public:
// Ops
void Comp_ITypeMem(MIPSOpcode op);
void Comp_Cache(MIPSOpcode op);
void Comp_RelBranch(MIPSOpcode op);
void Comp_RelBranchRI(MIPSOpcode op);
+1 -1
View File
@@ -147,7 +147,7 @@ const MIPSInstruction tableImmediate[64] = // xxxxxx ..... ..... ...............
INVALID,
INVALID,
INSTR("swr", &Jit::Comp_ITypeMem, Dis_ITypeMem, Int_ITypeMem, IN_IMM16|IN_RS_ADDR|IN_RT|OUT_MEM|MEMTYPE_WORD),
INSTR("cache", &Jit::Comp_Generic, Dis_Generic, Int_Cache, IN_MEM|IN_IMM16|IN_RS_ADDR|IN_OTHER|OUT_OTHER),
INSTR("cache", &Jit::Comp_Cache, Dis_Generic, Int_Cache, IN_MEM|IN_IMM16|IN_RS_ADDR|IN_OTHER|OUT_OTHER),
//48
INSTR("ll", &Jit::Comp_Generic, Dis_Generic, Int_StoreSync, IN_MEM|IN_IMM16|IN_RS_ADDR|OUT_RT|OUT_OTHER|MEMTYPE_WORD),
INSTR("lwc1", &Jit::Comp_FPULS, Dis_FPULS, Int_FPULS, IN_MEM|IN_IMM16|IN_RS_ADDR|OUT_OTHER|MEMTYPE_FLOAT),
+6
View File
@@ -140,3 +140,9 @@ void Jit::Comp_ITypeMem(MIPSOpcode op) {
}
}
}
void Jit::Comp_Cache(MIPSOpcode op) {
CONDITIONAL_DISABLE;
// TODO: Could use this as a hint, and technically required to handle icache, etc.
// But right now Int_Cache does nothing, so let's not even call it.
}
+1
View File
@@ -176,6 +176,7 @@ namespace MIPSComp
// Ops
void Comp_ITypeMem(MIPSOpcode op);
void Comp_Cache(MIPSOpcode op);
void Comp_RelBranch(MIPSOpcode op);
void Comp_RelBranchRI(MIPSOpcode op);
+4
View File
@@ -370,4 +370,8 @@ namespace MIPSComp
}
}
void Jit::Comp_Cache(MIPSOpcode op) {
DISABLE;
}
}
+1
View File
@@ -84,6 +84,7 @@ public:
// Ops
void Comp_ITypeMem(MIPSOpcode op);
void Comp_Cache(MIPSOpcode op);
void Comp_RelBranch(MIPSOpcode op);
void Comp_RelBranchRI(MIPSOpcode op);