mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Fix most warnings (errors with -Werror) when debugging is enabled
I used the following command to enable debugging: perl -p -i -e 's/^\/\/#define DEBUG/#define DEBUG/g' * */* */*/* Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
c0a2a096a0
commit
0bf9e31af1
21 changed files with 95 additions and 103 deletions
12
hw/vga.c
12
hw/vga.c
|
@ -799,7 +799,7 @@ void vga_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
|
|||
uint32_t write_mask, bit_mask, set_mask;
|
||||
|
||||
#ifdef DEBUG_VGA_MEM
|
||||
printf("vga: [0x%x] = 0x%02x\n", addr, val);
|
||||
printf("vga: [0x" TARGET_FMT_plx "] = 0x%02x\n", addr, val);
|
||||
#endif
|
||||
/* convert to VGA memory offset */
|
||||
memory_map_mode = (s->gr[6] >> 2) & 3;
|
||||
|
@ -832,7 +832,7 @@ void vga_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
|
|||
if (s->sr[2] & mask) {
|
||||
s->vram_ptr[addr] = val;
|
||||
#ifdef DEBUG_VGA_MEM
|
||||
printf("vga: chain4: [0x%x]\n", addr);
|
||||
printf("vga: chain4: [0x" TARGET_FMT_plx "]\n", addr);
|
||||
#endif
|
||||
s->plane_updated |= mask; /* only used to detect font change */
|
||||
cpu_physical_memory_set_dirty(s->vram_offset + addr);
|
||||
|
@ -845,7 +845,7 @@ void vga_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
|
|||
addr = ((addr & ~1) << 1) | plane;
|
||||
s->vram_ptr[addr] = val;
|
||||
#ifdef DEBUG_VGA_MEM
|
||||
printf("vga: odd/even: [0x%x]\n", addr);
|
||||
printf("vga: odd/even: [0x" TARGET_FMT_plx "]\n", addr);
|
||||
#endif
|
||||
s->plane_updated |= mask; /* only used to detect font change */
|
||||
cpu_physical_memory_set_dirty(s->vram_offset + addr);
|
||||
|
@ -919,10 +919,10 @@ void vga_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
|
|||
(((uint32_t *)s->vram_ptr)[addr] & ~write_mask) |
|
||||
(val & write_mask);
|
||||
#ifdef DEBUG_VGA_MEM
|
||||
printf("vga: latch: [0x%x] mask=0x%08x val=0x%08x\n",
|
||||
addr * 4, write_mask, val);
|
||||
printf("vga: latch: [0x" TARGET_FMT_plx "] mask=0x%08x val=0x%08x\n",
|
||||
addr * 4, write_mask, val);
|
||||
#endif
|
||||
cpu_physical_memory_set_dirty(s->vram_offset + (addr << 2));
|
||||
cpu_physical_memory_set_dirty(s->vram_offset + (addr << 2));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue