diff options
author | Avi Kivity <avi@redhat.com> | 2011-08-08 16:09:01 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-08 10:15:53 -0500 |
commit | b2a5e761c6fcf0b03734f4d911c02272edbe6ad1 (patch) | |
tree | 78ae650a20e62ce90195ff49bdebe8ff6a7b89bd /hw/cirrus_vga.c | |
parent | a815b16649eb12f3d834464043dc5ad48eafe594 (diff) |
vga: simplify vga window mmio access functions
Make use of the memory API's ability to satisfy multi-byte accesses via
multiple single-byte accesses.
We have to keep vga_mem_{read,write}b() since they're used by cirrus.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/cirrus_vga.c')
-rw-r--r-- | hw/cirrus_vga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 5ded1ff1aa..2a9bd259fc 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -1966,7 +1966,7 @@ static uint64_t cirrus_vga_mem_read(void *opaque, uint32_t val; if ((s->vga.sr[0x07] & 0x01) == 0) { - return vga_mem_readb(s, addr); + return vga_mem_readb(&s->vga, addr); } if (addr < 0x10000) { @@ -2011,7 +2011,7 @@ static void cirrus_vga_mem_write(void *opaque, unsigned mode; if ((s->vga.sr[0x07] & 0x01) == 0) { - vga_mem_writeb(s, addr, mem_value); + vga_mem_writeb(&s->vga, addr, mem_value); return; } |