From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LBTNN-0002ra-5P for qemu-devel@nongnu.org; Sat, 13 Dec 2008 07:13:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LBTNM-0002pG-3p for qemu-devel@nongnu.org; Sat, 13 Dec 2008 07:13:40 -0500 Received: from [199.232.76.173] (port=52838 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LBTNL-0002oj-W3 for qemu-devel@nongnu.org; Sat, 13 Dec 2008 07:13:40 -0500 Received: from savannah.gnu.org ([199.232.41.3]:46208 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LBTNI-0007py-DR for qemu-devel@nongnu.org; Sat, 13 Dec 2008 07:13:37 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LBTNG-0006Nm-1e for qemu-devel@nongnu.org; Sat, 13 Dec 2008 12:13:34 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LBTNF-0006Ng-K3 for qemu-devel@nongnu.org; Sat, 13 Dec 2008 12:13:33 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Sat, 13 Dec 2008 12:13:33 +0000 Subject: [Qemu-devel] [6006] target-ppc: use accessors to access fp_status exception_flags Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6006 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6006 Author: aurel32 Date: 2008-12-13 12:13:33 +0000 (Sat, 13 Dec 2008) Log Message: ----------- target-ppc: use accessors to access fp_status exception_flags Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-ppc/op_helper.c Modified: trunk/target-ppc/op_helper.c =================================================================== --- trunk/target-ppc/op_helper.c 2008-12-13 11:49:17 UTC (rev 6005) +++ trunk/target-ppc/op_helper.c 2008-12-13 12:13:33 UTC (rev 6006) @@ -1000,12 +1000,15 @@ /* Differred floating-point exception after target FPR update */ if (msr_fe0 != 0 || msr_fe1 != 0) helper_raise_exception_err(env->exception_index, env->error_code); - } else if (env->fp_status.float_exception_flags & float_flag_overflow) { - float_overflow_excp(); - } else if (env->fp_status.float_exception_flags & float_flag_underflow) { - float_underflow_excp(); - } else if (env->fp_status.float_exception_flags & float_flag_inexact) { - float_inexact_excp(); + } else { + int status = get_float_exception_flags(&env->fp_status); + if (status & float_flag_overflow) { + float_overflow_excp(); + } else if (status & float_flag_underflow) { + float_underflow_excp(); + } else if (status & float_flag_inexact) { + float_inexact_excp(); + } } #else if (env->exception_index == POWERPC_EXCP_PROGRAM && @@ -1020,7 +1023,7 @@ #ifdef CONFIG_SOFTFLOAT void helper_reset_fpstatus (void) { - env->fp_status.float_exception_flags = 0; + set_float_exception_flags(0, &env->fp_status); } #endif