Commit 4d1165fa61784885f9099aaaf276fb1a0fc14cff
1 parent
2a324a26
Fix 64-bit host printf format mismatches.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3564 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
8 changed files
with
20 additions
and
18 deletions
hw/integratorcp.c
| @@ -99,7 +99,7 @@ static uint32_t integratorcm_read(void *opaque, target_phys_addr_t offset) | @@ -99,7 +99,7 @@ static uint32_t integratorcm_read(void *opaque, target_phys_addr_t offset) | ||
| 99 | return 0; | 99 | return 0; |
| 100 | default: | 100 | default: |
| 101 | cpu_abort (cpu_single_env, | 101 | cpu_abort (cpu_single_env, |
| 102 | - "integratorcm_read: Unimplemented offset 0x%x\n", offset); | 102 | + "integratorcm_read: Unimplemented offset 0x%x\n", (int)offset); |
| 103 | return 0; | 103 | return 0; |
| 104 | } | 104 | } |
| 105 | } | 105 | } |
| @@ -207,7 +207,7 @@ static void integratorcm_write(void *opaque, target_phys_addr_t offset, | @@ -207,7 +207,7 @@ static void integratorcm_write(void *opaque, target_phys_addr_t offset, | ||
| 207 | break; | 207 | break; |
| 208 | default: | 208 | default: |
| 209 | cpu_abort (cpu_single_env, | 209 | cpu_abort (cpu_single_env, |
| 210 | - "integratorcm_write: Unimplemented offset 0x%x\n", offset); | 210 | + "integratorcm_write: Unimplemented offset 0x%x\n", (int)offset); |
| 211 | break; | 211 | break; |
| 212 | } | 212 | } |
| 213 | } | 213 | } |
| @@ -414,7 +414,8 @@ static uint32_t icp_control_read(void *opaque, target_phys_addr_t offset) | @@ -414,7 +414,8 @@ static uint32_t icp_control_read(void *opaque, target_phys_addr_t offset) | ||
| 414 | case 3: /* CP_DECODE */ | 414 | case 3: /* CP_DECODE */ |
| 415 | return 0x11; | 415 | return 0x11; |
| 416 | default: | 416 | default: |
| 417 | - cpu_abort (cpu_single_env, "icp_control_read: Bad offset %x\n", offset); | 417 | + cpu_abort (cpu_single_env, "icp_control_read: Bad offset %x\n", |
| 418 | + (int)offset); | ||
| 418 | return 0; | 419 | return 0; |
| 419 | } | 420 | } |
| 420 | } | 421 | } |
| @@ -431,7 +432,8 @@ static void icp_control_write(void *opaque, target_phys_addr_t offset, | @@ -431,7 +432,8 @@ static void icp_control_write(void *opaque, target_phys_addr_t offset, | ||
| 431 | /* Nothing interesting implemented yet. */ | 432 | /* Nothing interesting implemented yet. */ |
| 432 | break; | 433 | break; |
| 433 | default: | 434 | default: |
| 434 | - cpu_abort (cpu_single_env, "icp_control_write: Bad offset %x\n", offset); | 435 | + cpu_abort (cpu_single_env, "icp_control_write: Bad offset %x\n", |
| 436 | + (int)offset); | ||
| 435 | } | 437 | } |
| 436 | } | 438 | } |
| 437 | static CPUReadMemoryFunc *icp_control_readfn[] = { | 439 | static CPUReadMemoryFunc *icp_control_readfn[] = { |
hw/pl011.c
| @@ -99,7 +99,7 @@ static uint32_t pl011_read(void *opaque, target_phys_addr_t offset) | @@ -99,7 +99,7 @@ static uint32_t pl011_read(void *opaque, target_phys_addr_t offset) | ||
| 99 | case 18: /* UARTDMACR */ | 99 | case 18: /* UARTDMACR */ |
| 100 | return s->dmacr; | 100 | return s->dmacr; |
| 101 | default: | 101 | default: |
| 102 | - cpu_abort (cpu_single_env, "pl011_read: Bad offset %x\n", offset); | 102 | + cpu_abort (cpu_single_env, "pl011_read: Bad offset %x\n", (int)offset); |
| 103 | return 0; | 103 | return 0; |
| 104 | } | 104 | } |
| 105 | } | 105 | } |
| @@ -172,7 +172,7 @@ static void pl011_write(void *opaque, target_phys_addr_t offset, | @@ -172,7 +172,7 @@ static void pl011_write(void *opaque, target_phys_addr_t offset, | ||
| 172 | cpu_abort(cpu_single_env, "PL011: DMA not implemented\n"); | 172 | cpu_abort(cpu_single_env, "PL011: DMA not implemented\n"); |
| 173 | break; | 173 | break; |
| 174 | default: | 174 | default: |
| 175 | - cpu_abort (cpu_single_env, "pl011_write: Bad offset %x\n", offset); | 175 | + cpu_abort (cpu_single_env, "pl011_write: Bad offset %x\n", (int)offset); |
| 176 | } | 176 | } |
| 177 | } | 177 | } |
| 178 | 178 |
hw/pl050.c
| @@ -79,7 +79,7 @@ static uint32_t pl050_read(void *opaque, target_phys_addr_t offset) | @@ -79,7 +79,7 @@ static uint32_t pl050_read(void *opaque, target_phys_addr_t offset) | ||
| 79 | case 4: /* KMIIR */ | 79 | case 4: /* KMIIR */ |
| 80 | return s->pending | 2; | 80 | return s->pending | 2; |
| 81 | default: | 81 | default: |
| 82 | - cpu_abort (cpu_single_env, "pl050_read: Bad offset %x\n", offset); | 82 | + cpu_abort (cpu_single_env, "pl050_read: Bad offset %x\n", (int)offset); |
| 83 | return 0; | 83 | return 0; |
| 84 | } | 84 | } |
| 85 | } | 85 | } |
| @@ -108,7 +108,7 @@ static void pl050_write(void *opaque, target_phys_addr_t offset, | @@ -108,7 +108,7 @@ static void pl050_write(void *opaque, target_phys_addr_t offset, | ||
| 108 | s->clk = value; | 108 | s->clk = value; |
| 109 | return; | 109 | return; |
| 110 | default: | 110 | default: |
| 111 | - cpu_abort (cpu_single_env, "pl050_write: Bad offset %x\n", offset); | 111 | + cpu_abort (cpu_single_env, "pl050_write: Bad offset %x\n", (int)offset); |
| 112 | } | 112 | } |
| 113 | } | 113 | } |
| 114 | static CPUReadMemoryFunc *pl050_readfn[] = { | 114 | static CPUReadMemoryFunc *pl050_readfn[] = { |
hw/pl080.c
| @@ -243,7 +243,7 @@ static uint32_t pl080_read(void *opaque, target_phys_addr_t offset) | @@ -243,7 +243,7 @@ static uint32_t pl080_read(void *opaque, target_phys_addr_t offset) | ||
| 243 | return s->sync; | 243 | return s->sync; |
| 244 | default: | 244 | default: |
| 245 | bad_offset: | 245 | bad_offset: |
| 246 | - cpu_abort(cpu_single_env, "pl080_read: Bad offset %x\n", offset); | 246 | + cpu_abort(cpu_single_env, "pl080_read: Bad offset %x\n", (int)offset); |
| 247 | return 0; | 247 | return 0; |
| 248 | } | 248 | } |
| 249 | } | 249 | } |
| @@ -305,7 +305,7 @@ static void pl080_write(void *opaque, target_phys_addr_t offset, | @@ -305,7 +305,7 @@ static void pl080_write(void *opaque, target_phys_addr_t offset, | ||
| 305 | break; | 305 | break; |
| 306 | default: | 306 | default: |
| 307 | bad_offset: | 307 | bad_offset: |
| 308 | - cpu_abort(cpu_single_env, "pl080_write: Bad offset %x\n", offset); | 308 | + cpu_abort(cpu_single_env, "pl080_write: Bad offset %x\n", (int)offset); |
| 309 | } | 309 | } |
| 310 | pl080_update(s); | 310 | pl080_update(s); |
| 311 | } | 311 | } |
hw/pl110.c
| @@ -326,7 +326,7 @@ static uint32_t pl110_read(void *opaque, target_phys_addr_t offset) | @@ -326,7 +326,7 @@ static uint32_t pl110_read(void *opaque, target_phys_addr_t offset) | ||
| 326 | case 12: /* LCDLPCURR */ | 326 | case 12: /* LCDLPCURR */ |
| 327 | return s->lpbase; | 327 | return s->lpbase; |
| 328 | default: | 328 | default: |
| 329 | - cpu_abort (cpu_single_env, "pl110_read: Bad offset %x\n", offset); | 329 | + cpu_abort (cpu_single_env, "pl110_read: Bad offset %x\n", (int)offset); |
| 330 | return 0; | 330 | return 0; |
| 331 | } | 331 | } |
| 332 | } | 332 | } |
| @@ -393,7 +393,7 @@ static void pl110_write(void *opaque, target_phys_addr_t offset, | @@ -393,7 +393,7 @@ static void pl110_write(void *opaque, target_phys_addr_t offset, | ||
| 393 | pl110_update(s); | 393 | pl110_update(s); |
| 394 | break; | 394 | break; |
| 395 | default: | 395 | default: |
| 396 | - cpu_abort (cpu_single_env, "pl110_write: Bad offset %x\n", offset); | 396 | + cpu_abort (cpu_single_env, "pl110_write: Bad offset %x\n", (int)offset); |
| 397 | } | 397 | } |
| 398 | } | 398 | } |
| 399 | 399 |
hw/pl181.c
| @@ -333,7 +333,7 @@ static uint32_t pl181_read(void *opaque, target_phys_addr_t offset) | @@ -333,7 +333,7 @@ static uint32_t pl181_read(void *opaque, target_phys_addr_t offset) | ||
| 333 | return value; | 333 | return value; |
| 334 | } | 334 | } |
| 335 | default: | 335 | default: |
| 336 | - cpu_abort (cpu_single_env, "pl181_read: Bad offset %x\n", offset); | 336 | + cpu_abort (cpu_single_env, "pl181_read: Bad offset %x\n", (int)offset); |
| 337 | return 0; | 337 | return 0; |
| 338 | } | 338 | } |
| 339 | } | 339 | } |
| @@ -405,7 +405,7 @@ static void pl181_write(void *opaque, target_phys_addr_t offset, | @@ -405,7 +405,7 @@ static void pl181_write(void *opaque, target_phys_addr_t offset, | ||
| 405 | } | 405 | } |
| 406 | break; | 406 | break; |
| 407 | default: | 407 | default: |
| 408 | - cpu_abort (cpu_single_env, "pl181_write: Bad offset %x\n", offset); | 408 | + cpu_abort (cpu_single_env, "pl181_write: Bad offset %x\n", (int)offset); |
| 409 | } | 409 | } |
| 410 | pl181_update(s); | 410 | pl181_update(s); |
| 411 | } | 411 | } |
hw/pl190.c
| @@ -139,7 +139,7 @@ static uint32_t pl190_read(void *opaque, target_phys_addr_t offset) | @@ -139,7 +139,7 @@ static uint32_t pl190_read(void *opaque, target_phys_addr_t offset) | ||
| 139 | case 13: /* DEFVECTADDR */ | 139 | case 13: /* DEFVECTADDR */ |
| 140 | return s->vect_addr[16]; | 140 | return s->vect_addr[16]; |
| 141 | default: | 141 | default: |
| 142 | - cpu_abort (cpu_single_env, "pl190_read: Bad offset %x\n", offset); | 142 | + cpu_abort (cpu_single_env, "pl190_read: Bad offset %x\n", (int)offset); |
| 143 | return 0; | 143 | return 0; |
| 144 | } | 144 | } |
| 145 | } | 145 | } |
| @@ -197,7 +197,7 @@ static void pl190_write(void *opaque, target_phys_addr_t offset, uint32_t val) | @@ -197,7 +197,7 @@ static void pl190_write(void *opaque, target_phys_addr_t offset, uint32_t val) | ||
| 197 | cpu_abort(cpu_single_env, "pl190: Test mode not implemented\n"); | 197 | cpu_abort(cpu_single_env, "pl190: Test mode not implemented\n"); |
| 198 | break; | 198 | break; |
| 199 | default: | 199 | default: |
| 200 | - cpu_abort(cpu_single_env, "pl190_write: Bad offset %x\n", offset); | 200 | + cpu_abort(cpu_single_env, "pl190_write: Bad offset %x\n", (int)offset); |
| 201 | return; | 201 | return; |
| 202 | } | 202 | } |
| 203 | pl190_update(s); | 203 | pl190_update(s); |
hw/smc91c111.c
| @@ -413,7 +413,7 @@ static void smc91c111_writeb(void *opaque, target_phys_addr_t offset, | @@ -413,7 +413,7 @@ static void smc91c111_writeb(void *opaque, target_phys_addr_t offset, | ||
| 413 | break; | 413 | break; |
| 414 | } | 414 | } |
| 415 | cpu_abort (cpu_single_env, "smc91c111_write: Bad reg %d:%x\n", | 415 | cpu_abort (cpu_single_env, "smc91c111_write: Bad reg %d:%x\n", |
| 416 | - s->bank, offset); | 416 | + s->bank, (int)offset); |
| 417 | } | 417 | } |
| 418 | 418 | ||
| 419 | static uint32_t smc91c111_readb(void *opaque, target_phys_addr_t offset) | 419 | static uint32_t smc91c111_readb(void *opaque, target_phys_addr_t offset) |
| @@ -555,7 +555,7 @@ static uint32_t smc91c111_readb(void *opaque, target_phys_addr_t offset) | @@ -555,7 +555,7 @@ static uint32_t smc91c111_readb(void *opaque, target_phys_addr_t offset) | ||
| 555 | break; | 555 | break; |
| 556 | } | 556 | } |
| 557 | cpu_abort (cpu_single_env, "smc91c111_read: Bad reg %d:%x\n", | 557 | cpu_abort (cpu_single_env, "smc91c111_read: Bad reg %d:%x\n", |
| 558 | - s->bank, offset); | 558 | + s->bank, (int)offset); |
| 559 | return 0; | 559 | return 0; |
| 560 | } | 560 | } |
| 561 | 561 |