[Top][All Lists]
[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
- [Qemu-devel] [PATCH 0/7] PPC: Add FSL (e500) MMU emulation v5, Alexander Graf, 2011/05/07
- [Qemu-devel] [PATCH 1/7] PPC: Make MPC8544DS obey -cpu switch, Alexander Graf, 2011/05/07
- [Qemu-devel] [PATCH 3/7] PPC: Add GS MSR definition, Alexander Graf, 2011/05/07
- [Qemu-devel] [PATCH 2/7] PPC: Make MPC8544DS emulation work w/o KVM, Alexander Graf, 2011/05/07
- [Qemu-devel] [PATCH 6/7] PPC MPC7544DS: Use new TLB helper function, Alexander Graf, 2011/05/07
- [Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci, Alexander Graf, 2011/05/07
- [Qemu-devel] [PATCH 4/7] PPC: Add another 64 bits to instruction feature mask, Alexander Graf, 2011/05/07
- [Qemu-devel] [PATCH 5/7] PPC: Implement e500 (FSL) MMU, Alexander Graf, 2011/05/07