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:
Henrik Rydgård committed 2026-08-25 00:22:40 +02:00
1 parent fb385e7627
commit a810597ac0
13 files changed
+139 -10

No files matched your search

+17 -2
View File
@@ -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);