Commit 5de98f4a authored by George Hotz's avatar George Hotz

fix 0xdead0000

parent fada13be
...@@ -275,11 +275,12 @@ contract MIPS { ...@@ -275,11 +275,12 @@ contract MIPS {
stateHash = WriteMemory(stateHash, storeAddr, val); stateHash = WriteMemory(stateHash, storeAddr, val);
} }
if (nextPC & PC_FLAG != 0) { if (nextPC & PC_FLAG != 0 && nextPC != 0xDEAD0000) {
stateHash = WriteMemory(stateHash, REG_LR, pc+4); stateHash = WriteMemory(stateHash, REG_LR, pc+4);
nextPC &= PC_MASK;
} }
stateHash = WriteMemory(stateHash, REG_PC, nextPC & PC_MASK); stateHash = WriteMemory(stateHash, REG_PC, nextPC);
return stateHash; return stateHash;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment