qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [RFC PATCH 12/34] mb: cpu: Move CPU_COMMON to front of env


From: Peter Crosthwaite
Subject: [Qemu-devel] [RFC PATCH 12/34] mb: cpu: Move CPU_COMMON to front of env
Date: Sun, 10 May 2015 23:29:15 -0700

To allow pointer casts to the the multi-arch CPUArchState which
contains just the CPU_COMMON components.

Signed-off-by: Peter Crosthwaite <address@hidden>
---
 target-microblaze/cpu.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h
index dee645d..eaeb82f 100644
--- a/target-microblaze/cpu.h
+++ b/target-microblaze/cpu.h
@@ -230,6 +230,8 @@ typedef struct CPUMBState CPUMBState;
 #define STREAM_NONBLOCK  (1 << 4)
 
 struct CPUMBState {
+    CPU_COMMON
+
     uint32_t debug;
     uint32_t btaken;
     uint32_t btarget;
@@ -266,8 +268,6 @@ struct CPUMBState {
     /* Unified MMU.  */
     struct microblaze_mmu mmu;
 #endif
-
-    CPU_COMMON
 };
 
 #include "cpu-qom.h"
-- 
1.9.1




reply via email to

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