shithub: riscv

Download patch

ref: e9e45e17eb015267aa9db69deecf26d07fa12011
parent: 166afefab99ee1b83efd2b02cefae52f6584fd0c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Mar 29 20:26:33 EDT 2015

sgi: preserve R27 in setregisters(), use setregisters() in noted()

GEVector() saves the exception return PC in Ureg.r27 which needs
to be preserved.

there should be no reason for the user to change the status
register from noted() eigther, so we now just use setregisters()
in noted() to restore previous general purpose registers. this
means that CU1 will always be off after noted() because notify()
has disabled the FPU on entry and set fpstatus to FPinactive
if it was on. once user starts using FPU again, it will trap and
restore fpu registers.