Commit 92fb73b9b0c0ba40d1dbef61dc798bf9499d084a
1 parent
55308450
Fix PXA2xx framebuffer dirty checking.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6019 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
hw/pxa2xx_lcd.c
... | ... | @@ -752,11 +752,11 @@ static void pxa2xx_lcdc_dma0_redraw_vert(struct pxa2xx_lcdc_s *s, |
752 | 752 | addr = (ram_addr_t) (fb - phys_ram_base); |
753 | 753 | start = addr + s->yres * src_width; |
754 | 754 | end = addr; |
755 | + x = addr + TARGET_PAGE_SIZE; | |
755 | 756 | dirty[0] = dirty[1] = cpu_physical_memory_get_dirty(start, VGA_DIRTY_FLAG); |
756 | 757 | for (y = 0; y < s->yres; y ++) { |
757 | 758 | new_addr = addr + src_width; |
758 | - for (x = addr + TARGET_PAGE_SIZE; x < new_addr; | |
759 | - x += TARGET_PAGE_SIZE) { | |
759 | + for (; x < new_addr; x += TARGET_PAGE_SIZE) { | |
760 | 760 | dirty[1] = cpu_physical_memory_get_dirty(x, VGA_DIRTY_FLAG); |
761 | 761 | dirty[0] |= dirty[1]; |
762 | 762 | } | ... | ... |