Commit 70146ddb authored by George Hotz's avatar George Hotz

subtle issues

parent b5f17c3b
...@@ -70,9 +70,9 @@ contract MIPS { ...@@ -70,9 +70,9 @@ contract MIPS {
return stepNextPC(stateHash, pc, pc+4); return stepNextPC(stateHash, pc, pc+4);
} }
function handleSyscall(bytes32 stateHash) public view returns (bytes32) { function handleSyscall(bytes32 stateHash) internal view returns (bytes32) {
uint32 syscall_no = m.ReadMemory(stateHash, REG_OFFSET+2*4); uint32 syscall_no = m.ReadMemory(stateHash, REG_OFFSET+2*4);
uint32 v0; uint32 v0 = 0;
if (syscall_no == 4090) { if (syscall_no == 4090) {
// mmap // mmap
......
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