From 6fa724a34a65645529a37ea363a69a6c9c93f6c1 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Sat, 3 Jan 2009 14:04:11 +0000 Subject: [PATCH] Add vscr access macros. Signed-off-by: Nathan Froyd Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6158 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-ppc/cpu.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index f7600c4356..113bba5451 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -524,6 +524,13 @@ enum { #define fpscr_eex (((env->fpscr) >> FPSCR_XX) & ((env->fpscr) >> FPSCR_XE) & \ 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