Commit 6fa724a34a65645529a37ea363a69a6c9c93f6c1

Authored by aurel32
1 parent e4039339

Add vscr access macros.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6158 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 7 additions and 0 deletions
target-ppc/cpu.h
... ... @@ -525,6 +525,13 @@ enum {
525 525 0x1F)
526 526  
527 527 /*****************************************************************************/
  528 +/* Vector status and control register */
  529 +#define VSCR_NJ 16 /* Vector non-java */
  530 +#define VSCR_SAT 0 /* Vector saturation */
  531 +#define vscr_nj (((env->vscr) >> VSCR_NJ) & 0x1)
  532 +#define vscr_sat (((env->vscr) >> VSCR_SAT) & 0x1)
  533 +
  534 +/*****************************************************************************/
528 535 /* The whole PowerPC CPU context */
529 536 #define NB_MMU_MODES 3
530 537  
... ...