qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [RFC PATCH 18/34] mb: cpu-qom: Put the ENV first


From: Peter Crosthwaite
Subject: [Qemu-devel] [RFC PATCH 18/34] mb: cpu-qom: Put the ENV first
Date: Sun, 10 May 2015 23:29:21 -0700

To allow for consistent non-architecuture specific calculation of
the ENV_OFFSET (now just sizeof(CPUState)).

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

diff --git a/target-microblaze/cpu-qom.h b/target-microblaze/cpu-qom.h
index f3960ac..690c132 100644
--- a/target-microblaze/cpu-qom.h
+++ b/target-microblaze/cpu-qom.h
@@ -56,10 +56,10 @@ typedef struct MicroBlazeCPUClass {
 typedef struct MicroBlazeCPU {
     /*< private >*/
     CPUState parent_obj;
-    uint32_t base_vectors;
-    /*< public >*/
 
+    /*< public >*/
     CPUMBState env;
+    uint32_t base_vectors;
 } MicroBlazeCPU;
 
 static inline MicroBlazeCPU *mb_env_get_cpu(CPUMBState *env)
-- 
1.9.1




reply via email to

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