[Top][All Lists]
[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
- [Qemu-devel] [PATCH] target-ppc: add integer Altivec instructions, take 2, Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 09/40] Add vscr access macros.,
Nathan Froyd <=
- [Qemu-devel] [PATCH 15/40] Add v{add,sub}cuw instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 20/40] Add vs{l,r} instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 25/40] Add vsplt{b,h,w} instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 37/40] Add vmsumsh{m,s} instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 31/40] Add vsel and vperm instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 04/40] Add v{add,sub}u{b,h,w}m instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 10/40] Add vmrg{l,h}{b,h,w} instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 12/40] Add vsr{,a}{b,h,w} instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 29/40] Add GEN_VAFORM_PAIRED macro for subsequent instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 02/40] Add helper macros for later patches., Nathan Froyd, 2008/12/30