diff mbox

[RFC,12/34] mb: cpu: Move CPU_COMMON to front of env

Message ID 3c22777c7a42f8eda877947d893852da027e49b4.1431322749.git.crosthwaite.peter@gmail.com
State New
Headers show

Commit Message

Peter Crosthwaite May 11, 2015, 6:29 a.m. UTC
To allow pointer casts to the the multi-arch CPUArchState which
contains just the CPU_COMMON components.

Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
---
 target-microblaze/cpu.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

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"