diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-01-22 16:38:21 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-02-04 12:45:10 +0000 |
commit | cd7a45c95ecf2404810f3c6becb7cb83c5010ad8 (patch) | |
tree | 49d6bedd8bf8267333293bfc5217687d3175b82c /hw/g364fb.c | |
parent | cb437e48ab7ddd9b85843beb524904ee4b565721 (diff) | |
download | qemu-cd7a45c95ecf2404810f3c6becb7cb83c5010ad8.zip qemu-cd7a45c95ecf2404810f3c6becb7cb83c5010ad8.tar.gz qemu-cd7a45c95ecf2404810f3c6becb7cb83c5010ad8.tar.bz2 |
memory: change dirty getting API to take a size
Instead of each device knowing or guessing the guest page size,
just pass the desired size of dirtied memory area.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/g364fb.c')
-rw-r--r-- | hw/g364fb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/g364fb.c b/hw/g364fb.c index f47acc5..66d0044 100644 --- a/hw/g364fb.c +++ b/hw/g364fb.c @@ -62,7 +62,8 @@ typedef struct G364State { static inline int check_dirty(G364State *s, ram_addr_t page) { - return memory_region_get_dirty(&s->mem_vram, page, DIRTY_MEMORY_VGA); + return memory_region_get_dirty(&s->mem_vram, page, G364_PAGE_SIZE, + DIRTY_MEMORY_VGA); } static inline void reset_dirty(G364State *s, |