summaryrefslogtreecommitdiff
path: root/hw/display/vga_template.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-03-28 18:43:14 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2014-06-05 16:04:17 +0200
commit0983979b3a5edbff399c092b90c8be6dc656f2a4 (patch)
tree32c44c5d57c84545eb9addd910bf73abd9896a7b /hw/display/vga_template.h
parentfddbd80cc90db5ef210be98b76386b7b0a90dfe8 (diff)
downloadqemu-0983979b3a5edbff399c092b90c8be6dc656f2a4.tar.gz
hw: use ld_p/st_p instead of ld_raw/st_raw
The ld_raw and st_raw definitions are only needed in code that must compile for both user-mode and softmmu emulation. Device models can use the equivalent ld_p/st_p which are simple pointer accessors. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/display/vga_template.h')
-rw-r--r--hw/display/vga_template.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/display/vga_template.h b/hw/display/vga_template.h
index 6cfae567b4..90ec9c208f 100644
--- a/hw/display/vga_template.h
+++ b/hw/display/vga_template.h
@@ -361,7 +361,7 @@ static void glue(vga_draw_line15_, PIXEL_NAME)(VGACommonState *s1, uint8_t *d,
w = width;
do {
- v = lduw_raw((void *)s);
+ v = lduw_p((void *)s);
r = (v >> 7) & 0xf8;
g = (v >> 2) & 0xf8;
b = (v << 3) & 0xf8;
@@ -386,7 +386,7 @@ static void glue(vga_draw_line16_, PIXEL_NAME)(VGACommonState *s1, uint8_t *d,
w = width;
do {
- v = lduw_raw((void *)s);
+ v = lduw_p((void *)s);
r = (v >> 8) & 0xf8;
g = (v >> 3) & 0xfc;
b = (v << 3) & 0xf8;