You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 77174dd
Browse filesBrowse the repository at this point in the historyBrowse files
Revert MIPS: R5900: Save and restore multimedia registers
Approach taken doesn’t work for two reasons:
- SQ and LQ require 16-byte alignment, which is difficult to guarantee,
for example in a general stack setting with a 4-byte natural alignment
in a 32-bit kernel. Perhaps solvable with a major rewrite of MIPS
exception mechanisms? The alternative approach is to save and restore
multimedia registers in a separate array, in addition to the normal one.
- The kernel sometimes modifies the register array. These 32-bit writes
must be sign-extended to 64 bits, in a 32-bit kernel, if and only if a
register was written. LQ doesn’t sign-extend. It’s not enough to
compare registers with original values, because the register must be
sign-extended even if it happens to have the same 32-bit value as the
original: the actual act of writing the register array somewhere in the
kernel must be sign-extended. The kernel writes registers both in C and
in assembly (using LONG_S).
Commits:
- 5872154 ("MIPS: R5900: Restore multimedia registers")
- eb95b1a ("MIPS: R5900: Store multimedia registers, not yet restored")
- 0fa7064 ("MIPS: R5900: Introduce multimedia registers, not yet used")
- 508c006 ("MIPS: R5900: Align pt_regs on stack with 16-byte boundary")
- 1e44905 ("MIPS: R5900: Abstract pt_regs main array access with gprs macro")
- 40e49ed ("Revert "MIPS: R5900: Reset bits 127..64 of GPRs in RESTORE_SOME"")
Signed-off-by: Fredrik Noring <noring@nocrew.org>
0 commit comments