Skip to contentSkip to conversation

kvm/booke: Add synchronize register for booke init

PATCH Applied Liu Yu 3 participants 3 messages Jan 27, 2010 – Feb 27, 2010

lore
Share & tools
lore

Liu Yu

author
#0 lore raw

PATCH 1/1 kvm/booke: Add synchronize register for booke init

So that the following registers init could be flushed back to kvm.

---
 hw/ppc440_bamboo.c     |    2 ++
 hw/ppce500_mpc8544ds.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
hw/ppc440_bamboo.c +2 -0
index 1ab9872..1b9ec17 100644
@@ -160,6 +160,8 @@ static void bamboo_init(ram_addr_t ram_size,
             exit(1);
         }
 
+	cpu_synchronize_state(env);
+
         /* Set initial guest state. */
         env->gpr[1] = (16<<20) - 8;
         env->gpr[3] = dt_base;
hw/ppce500_mpc8544ds.c +2 -0
index ea30816..fabcf31 100644
@@ -261,6 +261,8 @@ static void mpc8544ds_init(ram_addr_t ram_size,
             exit(1);
         }
 
+	cpu_synchronize_state(env);
+
         /* Set initial guest state. */
         env->gpr[1] = (16<<20) - 8;
         env->gpr[3] = dt_base;
Signature · 1 line
1.6.4
#2 lore raw
In reply to Liu Yu
Quoted 3 lines · Liu Yu

So that the following registers init could be flushed back to kvm.

Thanks, applied.

Quoted 37 lines
---
 hw/ppc440_bamboo.c     |    2 ++
 hw/ppce500_mpc8544ds.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
hw/ppc440_bamboo.c +2 -0
index 1ab9872..1b9ec17 100644
@@ -160,6 +160,8 @@ static void bamboo_init(ram_addr_t ram_size,
             exit(1);
         }
 
+	cpu_synchronize_state(env);
+
         /* Set initial guest state. */
         env->gpr[1] = (16<<20) - 8;
         env->gpr[3] = dt_base;
hw/ppce500_mpc8544ds.c +2 -0
index ea30816..fabcf31 100644
@@ -261,6 +261,8 @@ static void mpc8544ds_init(ram_addr_t ram_size,
             exit(1);
         }
 
+	cpu_synchronize_state(env);
+
         /* Set initial guest state. */
         env->gpr[1] = (16<<20) - 8;
         env->gpr[3] = dt_base;
Signature · 1 line
1.6.4
Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net