thermosphere: don't trap memory register writes/don't migrate sw breakpoints

Makes no sense on a system with ASLR
This commit is contained in:
TuxSH
2020-01-06 21:57:53 +00:00
parent 2219494675
commit a67d682c10
3 changed files with 0 additions and 22 deletions

View File

@@ -68,32 +68,14 @@ void doSystemRegisterWrite(ExceptionStackFrame *frame, u32 iss, u32 reg)
val = readFrameRegisterZ(frame, reg);
bool reevalSoftwareBreakpoints = false;
// Hooks go here:
switch (iss) {
case ENCODE_SYSREG_ISS(TTBR0_EL1):
case ENCODE_SYSREG_ISS(TTBR1_EL1):
case ENCODE_SYSREG_ISS(TCR_EL1):
case ENCODE_SYSREG_ISS(SCTLR_EL1):
reevalSoftwareBreakpoints = true;
break;
default:
break;
}
if (reevalSoftwareBreakpoints) {
revertAllSoftwareBreakpoints();
}
doSystemRegisterRwImpl(&val, iss);
if (reevalSoftwareBreakpoints) {
__dsb_sy();
__isb();
applyAllSoftwareBreakpoints();
}
skipFaultingInstruction(frame, 4);
}