From be20f9e902ca47ea84e1b1c1e89b0a55d59b4c11 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 15 Aug 2011 17:17:37 +0300 Subject: vga: drop get_system_memory() from vga devices and derivatives Instead, use the bus accessors, or get the address space directly from the board constructor. Signed-off-by: Avi Kivity Signed-off-by: Anthony Liguori --- hw/vga_int.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/vga_int.h') diff --git a/hw/vga_int.h b/hw/vga_int.h index 100d98c8bf..7e4ed71b78 100644 --- a/hw/vga_int.h +++ b/hw/vga_int.h @@ -187,7 +187,7 @@ static inline int c6_to_8(int v) } void vga_common_init(VGACommonState *s, int vga_ram_size); -void vga_init(VGACommonState *s); +void vga_init(VGACommonState *s, MemoryRegion *address_space); MemoryRegion *vga_init_io(VGACommonState *s); void vga_common_reset(VGACommonState *s); @@ -217,7 +217,7 @@ void vga_draw_cursor_line_32(uint8_t *d1, const uint8_t *src1, unsigned int color_xor); int vga_ioport_invalid(VGACommonState *s, uint32_t addr); -void vga_init_vbe(VGACommonState *s); +void vga_init_vbe(VGACommonState *s, MemoryRegion *address_space); extern const uint8_t sr_mask[8]; extern const uint8_t gr_mask[16]; -- cgit v1.2.3