[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [6158] Add vscr access macros.
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] [6158] Add vscr access macros. |
Date: |
Sat, 03 Jan 2009 14:04:11 +0000 |
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 <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>
Modified Paths:
--------------
trunk/target-ppc/cpu.h
Modified: trunk/target-ppc/cpu.h
===================================================================
--- trunk/target-ppc/cpu.h 2009-01-03 13:31:58 UTC (rev 6157)
+++ trunk/target-ppc/cpu.h 2009-01-03 14:04:11 UTC (rev 6158)
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [6158] Add vscr access macros.,
Aurelien Jarno <=
- Prev by Date:
Re: [Qemu-devel] [PATCH 08/40] Add vcmpequ{b, h, w} and vcmpgt{s, u}{b, h, w} instructions.
- Next by Date:
Re: [Qemu-devel] [PATCH 09/40] Add vscr access macros.
- Previous by thread:
Re: [Qemu-devel] [PATCH 08/40] Add vcmpequ{b, h, w} and vcmpgt{s, u}{b, h, w} instructions.
- Next by thread:
Re: [Qemu-devel] [PATCH 09/40] Add vscr access macros.
- Index(es):