From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4uc0-0003IR-On for qemu-devel@nongnu.org; Wed, 09 Jul 2014 12:20:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4ubv-0005GP-4U for qemu-devel@nongnu.org; Wed, 09 Jul 2014 12:20:52 -0400 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:43900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4ubu-0005GI-OV for qemu-devel@nongnu.org; Wed, 09 Jul 2014 12:20:46 -0400 Received: by mail-pa0-f52.google.com with SMTP id eu11so9351740pac.25 for ; Wed, 09 Jul 2014 09:20:46 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Wed, 9 Jul 2014 09:20:21 -0700 Message-Id: <1404922834-28169-6-git-send-email-rth@twiddle.net> In-Reply-To: <1404922834-28169-1-git-send-email-rth@twiddle.net> References: <1404922834-28169-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PULL 05/18] 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