qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 2/7] PPC: Make MPC8544DS emulation work w/o KVM


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH 2/7] PPC: Make MPC8544DS emulation work w/o KVM
Date: Sun, 8 May 2011 15:42:23 +0200

Am 08.05.2011 um 12:08 schrieb Blue Swirl <address@hidden>:

> On Sun, May 8, 2011 at 2:00 AM, Alexander Graf <address@hidden> 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 <address@hidden>
>> 
>> ---
>> 
>> 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




reply via email to

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