diff options
author | Philippe Mathieu-Daudé | 2020-02-19 20:20:42 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé | 2020-02-20 14:47:08 +0100 |
commit | 85eb7c18ee39e26002de6fa6abc5638af140e588 (patch) | |
tree | 70ed975b4a8b8a1bc36a2d5bcc0bf888227a2bc3 /hw/display/ramfb.c | |
parent | exec: Let cpu_[physical]_memory API use a boolean 'is_write' argument (diff) | |
download | qemu-85eb7c18ee39e26002de6fa6abc5638af140e588.tar.gz qemu-85eb7c18ee39e26002de6fa6abc5638af140e588.tar.xz qemu-85eb7c18ee39e26002de6fa6abc5638af140e588.zip |
Let cpu_[physical]_memory() calls pass a boolean 'is_write' argument
Use an explicit boolean type.
This commit was produced with the included Coccinelle script
scripts/coccinelle/exec_rw_const.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'hw/display/ramfb.c')
-rw-r--r-- | hw/display/ramfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/ramfb.c b/hw/display/ramfb.c index cd94940223..7ba07c80f6 100644 --- a/hw/display/ramfb.c +++ b/hw/display/ramfb.c @@ -57,7 +57,7 @@ static DisplaySurface *ramfb_create_display_surface(int width, int height, } size = (hwaddr)linesize * height; - data = cpu_physical_memory_map(addr, &size, 0); + data = cpu_physical_memory_map(addr, &size, false); if (size != (hwaddr)linesize * height) { cpu_physical_memory_unmap(data, size, 0, 0); return NULL; |