[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 5/9] target-alpha: Set EXC_M_SWC for exceptions f
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH v2 5/9] target-alpha: Set EXC_M_SWC for exceptions from /S insns |
Date: |
Thu, 3 Jul 2014 13:29:03 -0700 |
Previously forgotten, the kernel needs the software completion bit to
know that it needs to emulate software completion qualified insns.
Reported-by: Al Viro <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
target-alpha/fpu_helper.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/target-alpha/fpu_helper.c b/target-alpha/fpu_helper.c
index efc5dfa..8bd4c08 100644
--- a/target-alpha/fpu_helper.c
+++ b/target-alpha/fpu_helper.c
@@ -45,9 +45,8 @@ uint32_t helper_fp_exc_get(CPUAlphaState *env)
}
static inline void fp_exc_raise1(CPUAlphaState *env, uintptr_t retaddr,
- uint32_t exc, uint32_t regno)
+ uint32_t exc, uint32_t regno, uint32_t hw_exc)
{
- uint32_t hw_exc = 0;
if (exc & float_flag_invalid) {
hw_exc |= EXC_M_INV;
}
@@ -93,7 +92,7 @@ void helper_fp_exc_raise_s(CPUAlphaState *env, uint32_t
ignore, uint32_t regno)
exc &= ~ignore;
if (exc) {
exc &= ~env->fpcr_exc_mask;
- fp_exc_raise1(env, GETPC(), exc, regno);
+ fp_exc_raise1(env, GETPC(), exc, regno, EXC_M_SWC);
}
}
}
--
1.9.3
- [Qemu-devel] [PATCH v2 0/9] target-alpha exception improvements, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 2/9] target-alpha: Set PC correctly for floating-point exceptions, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 1/9] target-alpha: Forget installed round mode after MT_FPCR, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 3/9] target-alpha: Store IOV exception in fp_status, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 8/9] target-alpha: Fix cvttq vs inf, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 4/9] target-alpha: Set fpcr_exc_status even for disabled exceptions, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 6/9] target-alpha: Raise IOV from CVTTQ, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 5/9] target-alpha: Set EXC_M_SWC for exceptions from /S insns,
Richard Henderson <=
- [Qemu-devel] [PATCH v2 9/9] target-alpha: Fix integer overflow checking insns, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 7/9] target-alpha: Fix cvttq vs large integers, Richard Henderson, 2014/07/03