aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-03 13:57:11 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-03 13:57:11 +0000
commitfb3444b86cd84c8c0750d1df189aa76beec8e1d8 (patch)
treea90ddf4a11e4b470177ea0a3aef89eba7556e656 /hw
parent2be0071f22f5719eb5e2800f070547227ba37e5a (diff)
endian register support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1493 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/ppc_prep.c9
1 files 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);