diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-16 12:13:52 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-16 12:13:52 +0000 |
commit | 526ccb7a26fea4b07eae4d34c8ad0599802a93ce (patch) | |
tree | 34ff707ff9bc0d57dd583c1b19f683defcfea80a /hw | |
parent | c5f2f66835c8b42fc58c7af9a4454be708304cfa (diff) |
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
Diffstat (limited to 'hw')
-rw-r--r-- | hw/pc.c | 13 | ||||
-rw-r--r-- | hw/sh7750.c | 4 |
2 files changed, 9 insertions, 8 deletions
@@ -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); } diff --git a/hw/sh7750.c b/hw/sh7750.c index a60a83ba66..a76e6d4d3c 100644 --- a/hw/sh7750.c +++ b/hw/sh7750.c @@ -182,13 +182,13 @@ static void portb_changed(SH7750State * s, uint16_t prev) static void error_access(const char *kind, target_phys_addr_t addr) { - fprintf(stderr, "%s to %s (0x%08x) not supported\n", + fprintf(stderr, "%s to %s (0x" TARGET_FMT_plx ") not supported\n", kind, regname(addr), addr); } static void ignore_access(const char *kind, target_phys_addr_t addr) { - fprintf(stderr, "%s to %s (0x%08x) ignored\n", + fprintf(stderr, "%s to %s (0x" TARGET_FMT_plx ") ignored\n", kind, regname(addr), addr); } |