Skip to contentSkip to conversation

[6158] Add vscr access macros.

Qemu-devel Aurelien Jarno 1 participant 1 message Jan 3, 2009

lore
Share & tools
lore
#0 lore raw

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.

Modified Paths:
--------------
trunk/target-ppc/cpu.h

Modified: trunk/target-ppc/cpu.h
===================================================================

target-ppc/cpu.h +7 -0
@@ -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