qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 09/40] Add vscr access macros.


From: Nathan Froyd
Subject: [Qemu-devel] [PATCH 09/40] Add vscr access macros.
Date: Tue, 30 Dec 2008 19:09:51 -0800

Signed-off-by: Nathan Froyd <address@hidden>
---
 target-ppc/cpu.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index f7600c4..113bba5 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -525,6 +525,13 @@ enum {
                    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
 
-- 
1.6.0.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]