aboutsummaryrefslogtreecommitdiff
path: root/hw/sun4u.c
diff options
context:
space:
mode:
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>2010-05-25 16:09:03 +0400
committerBlue Swirl <blauwirbel@gmail.com>2010-05-26 19:14:21 +0000
commitd63baf92e3e968626e0899ec6070e747a9bf51bf (patch)
tree3b91c6cb0f05c8c61670a453046ef8d14e79bec8 /hw/sun4u.c
parent5910b047a0221170f2a8dca65f0083bbe4f2c803 (diff)
downloadqemu-d63baf92e3e968626e0899ec6070e747a9bf51bf.zip
qemu-d63baf92e3e968626e0899ec6070e747a9bf51bf.tar.gz
qemu-d63baf92e3e968626e0899ec6070e747a9bf51bf.tar.bz2
sparc64: clean up pci bridge map
- remove unused host state and store pci bus pointer only - do not map host state access into unused 1fe.10000000 range - reorder pci region registration - assign pci i/o region to isa_mem_base Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/sun4u.c')
-rw-r--r--hw/sun4u.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/sun4u.c b/hw/sun4u.c
index 1e92900..40b5f1f 100644
--- a/hw/sun4u.c
+++ b/hw/sun4u.c
@@ -70,7 +70,7 @@
#define PROM_VADDR 0x000ffd00000ULL
#define APB_SPECIAL_BASE 0x1fe00000000ULL
#define APB_MEM_BASE 0x1ff00000000ULL
-#define VGA_BASE (APB_MEM_BASE + 0x400000ULL)
+#define APB_PCI_IO_BASE (APB_SPECIAL_BASE + 0x02000000ULL)
#define PROM_FILENAME "openbios-sparc64"
#define NVRAM_SIZE 0x2000
#define MAX_IDE_BUS 2
@@ -766,7 +766,7 @@ static void sun4uv_init(ram_addr_t RAM_size,
irq = qemu_allocate_irqs(cpu_set_irq, env, MAX_PILS);
pci_bus = pci_apb_init(APB_SPECIAL_BASE, APB_MEM_BASE, irq, &pci_bus2,
&pci_bus3);
- isa_mem_base = VGA_BASE;
+ isa_mem_base = APB_PCI_IO_BASE;
pci_vga_init(pci_bus, 0, 0);
// XXX Should be pci_bus3