[6158] Add vscr access macros.
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 <[email protected]>
Signed-off-by Aurelien Jarno <[email protected]>
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