From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2ndG-0006uI-WA for qemu-devel@nongnu.org; Thu, 03 Jul 2014 16:29:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2ndB-0004zW-Vr for qemu-devel@nongnu.org; Thu, 03 Jul 2014 16:29:26 -0400 Received: from mail-qa0-x22b.google.com ([2607:f8b0:400d:c00::22b]:58468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2ndB-0004zS-RJ for qemu-devel@nongnu.org; Thu, 03 Jul 2014 16:29:21 -0400 Received: by mail-qa0-f43.google.com with SMTP id k15so651020qaq.30 for ; Thu, 03 Jul 2014 13:29:21 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Thu, 3 Jul 2014 13:29:03 -0700 Message-Id: <1404419347-18265-6-git-send-email-rth@twiddle.net> In-Reply-To: <1404419347-18265-1-git-send-email-rth@twiddle.net> References: <1404419347-18265-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH v2 5/9] target-alpha: Set EXC_M_SWC for exceptions from /S insns List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, viro@ZenIV.linux.org.uk Previously forgotten, the kernel needs the software completion bit to know that it needs to emulate software completion qualified insns. Reported-by: Al Viro Signed-off-by: Richard Henderson --- 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