summaryrefslogtreecommitdiffstats
path: root/hw/pc.h
diff options
context:
space:
mode:
authorAvi Kivity2010-05-09 13:51:13 +0200
committerAurelien Jarno2010-05-28 21:33:59 +0200
commit97679527bf2f002225d08cfb93f840cef449ac0e (patch)
tree10658c03eeb795084ff06a269326a7432cb94ba4 /hw/pc.h
parentarm: prevent coprocessor IO reset (diff)
downloadqemu-97679527bf2f002225d08cfb93f840cef449ac0e.tar.gz
qemu-97679527bf2f002225d08cfb93f840cef449ac0e.tar.xz
qemu-97679527bf2f002225d08cfb93f840cef449ac0e.zip
Fix overflow in i440fx_init()
The ram_size parameter can be larger than an int, so it may be truncated. Fix by using the correct type. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/pc.h')
-rw-r--r--hw/pc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pc.h b/hw/pc.h
index 73cccefff7..0e52933eeb 100644
--- a/hw/pc.h
+++ b/hw/pc.h
@@ -135,7 +135,7 @@ int pcspk_audio_init(qemu_irq *pic);
struct PCII440FXState;
typedef struct PCII440FXState PCII440FXState;
-PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix_devfn, qemu_irq *pic, int ram_size);
+PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix_devfn, qemu_irq *pic, ram_addr_t ram_size);
void i440fx_init_memory_mappings(PCII440FXState *d);
/* piix4.c */