From 526ccb7a26fea4b07eae4d34c8ad0599802a93ce Mon Sep 17 00:00:00 2001 From: balrog Date: Wed, 16 Jul 2008 12:13:52 +0000 Subject: Fix a bunch of type mismatch-related warnings (Jan Kiszka). Fix a typo in my previous comming (spotted by Laurent Desnouges). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4877 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/pc.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'hw/pc.c') diff --git a/hw/pc.c b/hw/pc.c index 99df09d9a5..fb3e0c9e6d 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -550,9 +550,9 @@ static void load_linux(const char *kernel_filename, #if 0 fprintf(stderr, - "qemu: real_addr = %#zx\n" - "qemu: cmdline_addr = %#zx\n" - "qemu: prot_addr = %#zx\n", + "qemu: real_addr = 0x" TARGET_FMT_plx "\n" + "qemu: cmdline_addr = 0x" TARGET_FMT_plx "\n" + "qemu: prot_addr = 0x" TARGET_FMT_plx "\n", real_addr, cmdline_addr, prot_addr); @@ -607,8 +607,8 @@ static void load_linux(const char *kernel_filename, initrd_size = get_file_size(fi); initrd_addr = (initrd_max-initrd_size) & ~4095; - fprintf(stderr, "qemu: loading initrd (%#x bytes) at %#zx\n", - initrd_size, initrd_addr); + fprintf(stderr, "qemu: loading initrd (%#x bytes) at 0x" TARGET_FMT_plx + "\n", initrd_size, initrd_addr); if (!fread_targphys_ok(initrd_addr, initrd_size, fi)) { fprintf(stderr, "qemu: read error on initial ram disk '%s'\n", @@ -778,7 +778,8 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size, /* above 4giga memory allocation */ if (above_4g_mem_size > 0) { - cpu_register_physical_memory(0x100000000ULL, above_4g_mem_size, + cpu_register_physical_memory((target_phys_addr_t) 0x100000000ULL, + above_4g_mem_size, ram_addr + below_4g_mem_size); } -- cgit v1.2.3