wjkhasdfjhkasdf
This commit is contained in:
@@ -1310,7 +1310,7 @@ void Cop1::swc1(const Instruction instr) {
|
||||
regs.cop0.HandleTLBException(addr);
|
||||
regs.cop0.FireException(Cop0::GetTLBExceptionCode(regs.cop0.tlbError, Cop0::STORE), 0, regs.oldPC);
|
||||
} else {
|
||||
Core::GetInstance().interpreter.EvictCachedBlock(addr);
|
||||
Core::GetInstance().interpreter.cachedState.EvictCachedBlock(addr);
|
||||
mem.Write<u32>(physical, FGR_T<u32>(regs.cop0.status, instr.ft()));
|
||||
}
|
||||
}
|
||||
@@ -1338,7 +1338,7 @@ void Cop1::sdc1(const Instruction instr) {
|
||||
regs.cop0.HandleTLBException(addr);
|
||||
regs.cop0.FireException(Cop0::GetTLBExceptionCode(regs.cop0.tlbError, Cop0::STORE), 0, regs.oldPC);
|
||||
} else {
|
||||
Core::GetInstance().interpreter.EvictCachedBlock(addr);
|
||||
Core::GetInstance().interpreter.cachedState.EvictCachedBlock(addr);
|
||||
mem.Write(physical, FGR_T<u64>(regs.cop0.status, instr.ft()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -407,7 +407,7 @@ void Interpreter::sb(const Instruction instr) {
|
||||
regs.cop0.HandleTLBException(address);
|
||||
regs.cop0.FireException(Cop0::GetTLBExceptionCode(regs.cop0.tlbError, Cop0::STORE), 0, regs.oldPC);
|
||||
} else {
|
||||
EvictCachedBlock(address);
|
||||
cachedState.EvictCachedBlock(address);
|
||||
mem.Write<u8>(paddr, regs.Read<s64>(instr.rt()));
|
||||
}
|
||||
}
|
||||
@@ -431,7 +431,7 @@ void Interpreter::sc(const Instruction instr) {
|
||||
regs.cop0.HandleTLBException(address);
|
||||
regs.cop0.FireException(Cop0::GetTLBExceptionCode(regs.cop0.tlbError, Cop0::STORE), 0, regs.oldPC);
|
||||
} else {
|
||||
EvictCachedBlock(address);
|
||||
cachedState.EvictCachedBlock(address);
|
||||
mem.Write<u32>(paddr, regs.Read<s64>(instr.rt()));
|
||||
regs.Write(instr.rt(), 1);
|
||||
}
|
||||
@@ -464,7 +464,7 @@ void Interpreter::scd(const Instruction instr) {
|
||||
regs.cop0.HandleTLBException(address);
|
||||
regs.cop0.FireException(Cop0::GetTLBExceptionCode(regs.cop0.tlbError, Cop0::STORE), 0, regs.oldPC);
|
||||
} else {
|
||||
EvictCachedBlock(address);
|
||||
cachedState.EvictCachedBlock(address);
|
||||
mem.Write<u32>(paddr, regs.Read<s64>(instr.rt()));
|
||||
regs.Write(instr.rt(), 1);
|
||||
}
|
||||
@@ -481,7 +481,7 @@ void Interpreter::sh(const Instruction instr) {
|
||||
regs.cop0.HandleTLBException(address);
|
||||
regs.cop0.FireException(Cop0::GetTLBExceptionCode(regs.cop0.tlbError, Cop0::STORE), 0, regs.oldPC);
|
||||
} else {
|
||||
EvictCachedBlock(address);
|
||||
cachedState.EvictCachedBlock(address);
|
||||
mem.Write<u16>(physical, regs.Read<s64>(instr.rt()));
|
||||
}
|
||||
}
|
||||
@@ -500,7 +500,7 @@ void Interpreter::sw(const Instruction instr) {
|
||||
regs.cop0.HandleTLBException(address);
|
||||
regs.cop0.FireException(Cop0::GetTLBExceptionCode(regs.cop0.tlbError, Cop0::STORE), 0, regs.oldPC);
|
||||
} else {
|
||||
EvictCachedBlock(address);
|
||||
cachedState.EvictCachedBlock(address);
|
||||
mem.Write<u32>(physical, regs.Read<s64>(instr.rt()));
|
||||
}
|
||||
}
|
||||
@@ -518,7 +518,7 @@ void Interpreter::sd(const Instruction instr) {
|
||||
regs.cop0.HandleTLBException(address);
|
||||
regs.cop0.FireException(Cop0::GetTLBExceptionCode(regs.cop0.tlbError, Cop0::STORE), 0, regs.oldPC);
|
||||
} else {
|
||||
EvictCachedBlock(address);
|
||||
cachedState.EvictCachedBlock(address);
|
||||
mem.Write(physical, regs.Read<s64>(instr.rt()));
|
||||
}
|
||||
}
|
||||
@@ -534,7 +534,7 @@ void Interpreter::sdl(const Instruction instr) {
|
||||
const u64 mask = 0xFFFFFFFFFFFFFFFF >> shift;
|
||||
const u64 data = mem.Read<u64>(paddr & ~7);
|
||||
const u64 rt = regs.Read<s64>(instr.rt());
|
||||
EvictCachedBlock(address);
|
||||
cachedState.EvictCachedBlock(address);
|
||||
mem.Write(paddr & ~7, (data & ~mask) | (rt >> shift));
|
||||
}
|
||||
}
|
||||
@@ -550,7 +550,7 @@ void Interpreter::sdr(const Instruction instr) {
|
||||
const u64 mask = 0xFFFFFFFFFFFFFFFF << shift;
|
||||
const u64 data = mem.Read<u64>(paddr & ~7);
|
||||
const u64 rt = regs.Read<s64>(instr.rt());
|
||||
EvictCachedBlock(address);
|
||||
cachedState.EvictCachedBlock(address);
|
||||
mem.Write(paddr & ~7, (data & ~mask) | (rt << shift));
|
||||
}
|
||||
}
|
||||
@@ -566,7 +566,7 @@ void Interpreter::swl(const Instruction instr) {
|
||||
const u32 mask = 0xFFFFFFFF >> shift;
|
||||
const u32 data = mem.Read<u32>(paddr & ~3);
|
||||
const u32 rt = regs.Read<s64>(instr.rt());
|
||||
EvictCachedBlock(address);
|
||||
cachedState.EvictCachedBlock(address);
|
||||
mem.Write<u32>(paddr & ~3, (data & ~mask) | (rt >> shift));
|
||||
}
|
||||
}
|
||||
@@ -582,7 +582,7 @@ void Interpreter::swr(const Instruction instr) {
|
||||
const u32 mask = 0xFFFFFFFF << shift;
|
||||
const u32 data = mem.Read<u32>(paddr & ~3);
|
||||
const u32 rt = regs.Read<s64>(instr.rt());
|
||||
EvictCachedBlock(address);
|
||||
cachedState.EvictCachedBlock(address);
|
||||
mem.Write<u32>(paddr & ~3, (data & ~mask) | (rt << shift));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user