aboutsummaryrefslogtreecommitdiff
path: root/hw/g364fb.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-09-30 12:31:14 +0200
committerBlue Swirl <blauwirbel@gmail.com>2011-10-15 17:39:59 +0000
commite9a07334fb6ee08ddd61787c102d36e7e781efef (patch)
treeea0c49743ea03e0fdf53bcc7f10dc11df1dfe7b0 /hw/g364fb.c
parent2a22e6eb1b516a16ed2dd6c15da9a1e5b3455371 (diff)
Move graphic-related coalesced MMIO flushes to affected device models
This is conceptually cleaner and will allow us to drop the nographic timer. Moreover, it will be mandatory to fully exploit future per-device coalesced MMIO rings. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/g364fb.c')
-rw-r--r--hw/g364fb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/g364fb.c b/hw/g364fb.c
index b43341f8d7..f00ee27b17 100644
--- a/hw/g364fb.c
+++ b/hw/g364fb.c
@@ -245,6 +245,8 @@ static void g364fb_update_display(void *opaque)
{
G364State *s = opaque;
+ qemu_flush_coalesced_mmio_buffer();
+
if (s->width == 0 || s->height == 0)
return;
@@ -297,6 +299,8 @@ static void g364fb_screen_dump(void *opaque, const char *filename)
uint8_t *data_buffer;
FILE *f;
+ qemu_flush_coalesced_mmio_buffer();
+
if (s->depth != 8) {
error_report("g364: unknown guest depth %d", s->depth);
return;