mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Implement MMIO for the JIT (by falling back to the interpreter for load/stores from kernel addresses)
Fixes the VSH in JIT mode (but NOT ir)
This commit is contained in:
1 parent
fb385e7627
commit
a810597ac0
13 files changed
+139
-10
No files matched your search
@@ -51,13 +51,21 @@ namespace MIPSComp {
|
||||
MIPSGPReg rt = _RT;
|
||||
MIPSGPReg rs = _RS;
|
||||
int o = op >> 26;
|
||||
|
||||
CheckMemoryBreakpoint(rs, offset);
|
||||
|
||||
if (js.kernelMode) {
|
||||
// Send all memory accesses to the interpreter in kernel mode.
|
||||
// TODO: Do something faster - but it hardly matters, currently this is VSH-only.
|
||||
DISABLE;
|
||||
return;
|
||||
}
|
||||
|
||||
if (((op >> 29) & 1) == 0 && rt == MIPS_REG_ZERO) {
|
||||
// Don't load anything into $zr
|
||||
return;
|
||||
}
|
||||
|
||||
CheckMemoryBreakpoint(rs, offset);
|
||||
|
||||
switch (o) {
|
||||
// Load
|
||||
case 35:
|
||||
@@ -115,6 +123,13 @@ namespace MIPSComp {
|
||||
|
||||
CheckMemoryBreakpoint(rs, offset);
|
||||
|
||||
if (js.kernelMode) {
|
||||
// Send all memory accesses to the interpreter in kernel mode.
|
||||
// TODO: Do something faster - but it hardly matters, currently this is VSH-only.
|
||||
DISABLE;
|
||||
return;
|
||||
}
|
||||
|
||||
switch (op >> 26) {
|
||||
case 48: // ll
|
||||
ir.Write(IROp::Load32Linked, rt, rs, 0, offset);
|
||||
|
||||
Reference in new issue
Block a user