From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJ76s-0002Lj-IY for qemu-devel@nongnu.org; Sat, 03 Jan 2009 09:04:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJ76r-0002LV-AQ for qemu-devel@nongnu.org; Sat, 03 Jan 2009 09:04:13 -0500 Received: from [199.232.76.173] (port=54803 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJ76r-0002LS-5C for qemu-devel@nongnu.org; Sat, 03 Jan 2009 09:04:13 -0500 Received: from savannah.gnu.org ([199.232.41.3]:60367 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 1LJ76q-0002q8-M4 for qemu-devel@nongnu.org; Sat, 03 Jan 2009 09:04:12 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LJ76q-0003Fs-1G for qemu-devel@nongnu.org; Sat, 03 Jan 2009 14:04:12 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LJ76p-0003Fo-Mc for qemu-devel@nongnu.org; Sat, 03 Jan 2009 14:04:11 +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, 03 Jan 2009 14:04:11 +0000 Subject: [Qemu-devel] [6158] Add vscr access macros. 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: 6158 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6158 Author: aurel32 Date: 2009-01-03 14:04:11 +0000 (Sat, 03 Jan 2009) Log Message: ----------- Add vscr access macros. Signed-off-by: Nathan Froyd Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-ppc/cpu.h Modified: trunk/target-ppc/cpu.h =================================================================== --- trunk/target-ppc/cpu.h 2009-01-03 13:31:58 UTC (rev 6157) +++ trunk/target-ppc/cpu.h 2009-01-03 14:04:11 UTC (rev 6158) @@ -525,6 +525,13 @@ 0x1F) /*****************************************************************************/ +/* Vector status and control register */ +#define VSCR_NJ 16 /* Vector non-java */ +#define VSCR_SAT 0 /* Vector saturation */ +#define vscr_nj (((env->vscr) >> VSCR_NJ) & 0x1) +#define vscr_sat (((env->vscr) >> VSCR_SAT) & 0x1) + +/*****************************************************************************/ /* The whole PowerPC CPU context */ #define NB_MMU_MODES 3