Skip to content
Snippets Groups Projects
Commit 71a5ccec authored by Armin Luntzer's avatar Armin Luntzer
Browse files

SPARC trap entry: reorder instruction to save one stall cycle in case

static branch prediction is not enabled
parent 02c736d3
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,8 @@ trap_setup:
/* Calculate mask of trap window. See if from user
* or kernel and branch conditionally.
*/
mov 1, %t_twinmask
andcc %t_psr, PSR_PS, %g0 ! fromsupv_p = (psr & PSR_PS)
mov 1, %t_twinmask
be trap_setup_from_user ! nope, from user mode
sll %t_twinmask, %t_psr, %t_twinmask ! t_twinmask = (1 << psr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment