2003-02-05 Chris Demetriou <cgd@broadcom.com>

* mips/cfe.c (hardware_hazard_hook): Move...
	* mips/cfe_prestart.S (hardware_hazard_hook): To here,
	and translate into assembly.
This commit is contained in:
Jeff Johnston
2003-02-05 17:01:33 +00:00
parent 5017a3dafa
commit 3a357eadba
3 changed files with 29 additions and 20 deletions

View File

@ -96,23 +96,6 @@ hardware_init_hook(void)
cfe_conshandle = cfe_getstdhandle(CFE_STDHANDLE_CONSOLE);
}
/* Avoid worst-case execution hazards. This is targetted at the SB-1
pipe, and is much worse than it needs to be (not even counting
the subroutine call and return). */
void
hardware_hazard_hook(void)
{
__asm__ __volatile__ (" .set push \n"
" .set mips32 \n"
" .set noreorder \n"
" ssnop \n"
" ssnop \n"
" ssnop \n"
" bnel $0, $0, .+4 \n"
" ssnop \n"
" .set pop \n");
}
/* Exit back to monitor, with the given status code. */
void
hardware_exit_hook (int status)