Am 08.05.2011 um 12:08 schrieb Blue Swirl <blauwir...@gmail.com>: > On Sun, May 8, 2011 at 2:00 AM, Alexander Graf <ag...@suse.de> wrote: >> The MPC8544DS board emulation was only used with KVM so far, so some >> parts of the code didn't provide proper values for non-KVM execution. >> >> This patch makes the machine work without KVM enabled. To actually use >> this, you also need proper e500v2 MMU emulation. >> >> Signed-off-by: Alexander Graf <ag...@suse.de> >> >> --- >> >> v2 -> v3: >> >> - fix mpc initial tlb size comment >> - enable cpu reset >> --- >> hw/ppce500_mpc8544ds.c | 86 >> +++++++++++++++++++++++++++++++++++++++-------- >> 1 files changed, 71 insertions(+), 15 deletions(-) >> >> diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c >> index 1b8a1c4..44d6440 100644 >> --- a/hw/ppce500_mpc8544ds.c >> +++ b/hw/ppce500_mpc8544ds.c >> @@ -28,6 +28,7 @@ >> #include "kvm_ppc.h" >> #include "device_tree.h" >> #include "openpic.h" >> +#include "ppc.h" >> #include "ppce500.h" >> #include "loader.h" >> #include "elf.h" >> @@ -50,6 +51,12 @@ >> #define MPC8544_PCI_IO 0xE1000000 >> #define MPC8544_PCI_IOLEN 0x10000 >> >> +static struct boot_info >> +{ >> + uint32_t dt_base; >> + uint32_t entry; >> +} boot_info; > > I don't think there is a need to use static state here.
I just modeled it the same as Edgar's code :) > Alex