mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target/microblaze: Split out FSR from env->sregs
Continue eliminating the sregs array in favor of individual members. Does not correct the width of FSR, yet. Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -96,10 +96,10 @@ void cpu_loop(CPUMBState *env)
|
||||
case ESR_EC_FPU:
|
||||
info.si_signo = TARGET_SIGFPE;
|
||||
info.si_errno = 0;
|
||||
if (env->sregs[SR_FSR] & FSR_IO) {
|
||||
if (env->fsr & FSR_IO) {
|
||||
info.si_code = TARGET_FPE_FLTINV;
|
||||
}
|
||||
if (env->sregs[SR_FSR] & FSR_DZ) {
|
||||
if (env->fsr & FSR_DZ) {
|
||||
info.si_code = TARGET_FPE_FLTDIV;
|
||||
}
|
||||
info._sifields._sigfault._addr = 0;
|
||||
|
||||
Reference in New Issue
Block a user