* [Qemu-devel] [6158] Add vscr access macros.
@ 2009-01-03 14:04 Aurelien Jarno
0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2009-01-03 14:04 UTC (permalink / raw)
To: qemu-devel
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 <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-03 14:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-03 14:04 [Qemu-devel] [6158] Add vscr access macros Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).