[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/6] better type checking for vga
From: |
Glauber Costa |
Subject: |
[Qemu-devel] [PATCH 2/6] better type checking for vga |
Date: |
Wed, 19 Nov 2008 13:26:13 -0200 |
unsigned long is too bad of a type. Use ram_addr_t instead.
Signed-off-by: Glauber Costa <address@hidden>
---
hw/cirrus_vga.c | 4 ++--
hw/vga.c | 2 +-
hw/vga_int.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
index af9c9e6..3cdc8e6 100644
--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -3231,7 +3231,7 @@ static void cirrus_init_common(CirrusVGAState * s, int
device_id, int is_pci)
***************************************/
void isa_cirrus_vga_init(DisplayState *ds, uint8_t *vga_ram_base,
- unsigned long vga_ram_offset, int vga_ram_size)
+ ram_addr_t vga_ram_offset, int vga_ram_size)
{
CirrusVGAState *s;
@@ -3273,7 +3273,7 @@ static void cirrus_pci_mmio_map(PCIDevice *d, int
region_num,
}
void pci_cirrus_vga_init(PCIBus *bus, DisplayState *ds, uint8_t *vga_ram_base,
- unsigned long vga_ram_offset, int vga_ram_size)
+ ram_addr_t vga_ram_offset, int vga_ram_size)
{
PCICirrusVGAState *d;
uint8_t *pci_conf;
diff --git a/hw/vga.c b/hw/vga.c
index bd59aae..b44b77d 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -2105,7 +2105,7 @@ static void vga_map(PCIDevice *pci_dev, int region_num,
}
void vga_common_init(VGAState *s, DisplayState *ds, uint8_t *vga_ram_base,
- unsigned long vga_ram_offset, int vga_ram_size)
+ ram_addr_t vga_ram_offset, int vga_ram_size)
{
int i, j, v, b;
diff --git a/hw/vga_int.h b/hw/vga_int.h
index 82a755e..d559fcf 100644
--- a/hw/vga_int.h
+++ b/hw/vga_int.h
@@ -100,7 +100,7 @@ typedef void (* vga_update_retrace_info_fn)(struct VGAState
*s);
#define VGA_STATE_COMMON \
uint8_t *vram_ptr; \
- unsigned long vram_offset; \
+ ram_addr_t vram_offset; \
unsigned int vram_size; \
unsigned long bios_offset; \
unsigned int bios_size; \
--
1.5.6.5
- [Qemu-devel] [PATCH 0/6] New shot at VGA optimization, Glauber Costa, 2008/11/19
- [Qemu-devel] [PATCH 1/6] kvm: memory aliasing support for kvm, Glauber Costa, 2008/11/19
- [Qemu-devel] [PATCH 2/6] better type checking for vga,
Glauber Costa <=
- [Qemu-devel] [PATCH 3/6] move vga_io_address to VGA State, Glauber Costa, 2008/11/19
- [Qemu-devel] [PATCH 4/6] kvm: de-register mem region for MMIO., Glauber Costa, 2008/11/19
- [Qemu-devel] [PATCH 5/6] Introduce kvm logging interface., Glauber Costa, 2008/11/19
- [Qemu-devel] [PATCH 6/6] kvm: vga optimization., Glauber Costa, 2008/11/19
- Re: [Qemu-devel] [PATCH 6/6] kvm: vga optimization., Anthony Liguori, 2008/11/19
- Re: [Qemu-devel] [PATCH 6/6] kvm: vga optimization., Glauber Costa, 2008/11/19
- Re: [Qemu-devel] [PATCH 6/6] kvm: vga optimization., Anthony Liguori, 2008/11/19
- Re: [Qemu-devel] [PATCH 5/6] Introduce kvm logging interface., Anthony Liguori, 2008/11/19
- Re: [Qemu-devel] [PATCH 5/6] Introduce kvm logging interface., Glauber Costa, 2008/11/19
- Re: [Qemu-devel] [PATCH 5/6] Introduce kvm logging interface., Anthony Liguori, 2008/11/19