From fb3444b86cd84c8c0750d1df189aa76beec8e1d8 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 3 Jul 2005 13:57:11 +0000 Subject: [PATCH] endian register support git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1493 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/ppc_prep.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index 141fa1eee6..6b2bfd27b0 100644 --- a/hw/ppc_prep.c +++ b/hw/ppc_prep.c @@ -258,6 +258,7 @@ typedef struct sysctrl_t { uint8_t syscontrol; uint8_t fake_io[2]; int contiguous_map; + int endian; } sysctrl_t; enum { @@ -297,8 +298,9 @@ static void PREP_io_800_writeb (void *opaque, uint32_t addr, uint32_t val) } /* Check LE mode */ if (val & 0x02) { - printf("Little Endian mode isn't supported (yet ?)\n"); - abort(); + sysctrl->endian = 1; + } else { + sysctrl->endian = 0; } break; case 0x0800: @@ -549,7 +551,6 @@ static void ppc_prep_init(int ram_size, int vga_ram_size, int boot_device, } cpu_register_physical_memory((uint32_t)(-BIOS_SIZE), BIOS_SIZE, bios_offset | IO_MEM_ROM); - cpu_single_env->nip = 0xfffffffc; if (linux_boot) { kernel_base = KERNEL_LOAD_ADDR; @@ -604,7 +605,7 @@ static void ppc_prep_init(int ram_size, int vga_ram_size, int boot_device, /* init basic PC hardware */ vga_initialize(pci_bus, ds, phys_ram_base + ram_size, ram_size, - vga_ram_size); + vga_ram_size, 0, 0); rtc_init(0x70, 8); // openpic = openpic_init(0x00000000, 0xF0000000, 1); isa_pic = pic_init(pic_irq_request, cpu_single_env);