thermosphere: use ish instead of sy in most places

This commit is contained in:
TuxSH 2020-01-19 18:18:48 +00:00
parent d1cd17a9df
commit 3ca3e094fe
2 changed files with 10 additions and 10 deletions

View file

@ -19,7 +19,7 @@
// Precondition: x1 <= 16
FUNCTION loadBreakpointRegs
// x1 = number
dmb sy
dmb ish
adr x16, 1f
add x0, x0, #(16 * 8)
@ -35,7 +35,7 @@ FUNCTION loadBreakpointRegs
msr dbgbcr\count\()_el1, x2
msr dbgbvr\count\()_el1, x3
.endr
dsb sy
dsb ish
isb
ret
END_FUNCTION
@ -43,7 +43,7 @@ END_FUNCTION
// Precondition: x1 <= 16
FUNCTION loadWatchpointRegs
// x1 = number
dmb sy
dmb ish
adr x16, 1f
add x0, x0, #(16 * 8)
@ -59,7 +59,7 @@ FUNCTION loadWatchpointRegs
msr dbgwcr\count\()_el1, x2
msr dbgwvr\count\()_el1, x3
.endr
dsb sy
dsb ish
isb
ret
END_FUNCTION

View file

@ -36,23 +36,23 @@
.endm
FUNCTION fpuLoadRegistersFromStorage
dmb sy
dmb ish
LDSTORE_QREGS ldp
ldp x1, x2, [x0]
msr fpsr, x1
msr fpcr, x2
dsb sy
isb sy
dsb ish
isb ish
ret
END_FUNCTION
FUNCTION fpuStoreRegistersToStorage
dsb sy
isb sy
dsb ish
isb ish
LDSTORE_QREGS stp
mrs x1, fpsr
mrs x2, fpcr
stp x1, x2, [x0]
dmb sy
dmb ish
ret
END_FUNCTION