mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
Avoid cpu_physical_memory_rw() with a constant is_write argument
This commit was produced with the included Coccinelle script scripts/coccinelle/exec_rw_const. Inspired-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
85eb7c18ee
commit
adeefe0167
3 changed files with 15 additions and 3 deletions
|
@ -222,7 +222,7 @@ void xen_pt_setup_vga(XenPCIPassthroughState *s, XenHostPCIDevice *dev,
|
|||
}
|
||||
|
||||
/* Currently we fixed this address as a primary for legacy BIOS. */
|
||||
cpu_physical_memory_rw(0xc0000, bios, bios_size, true);
|
||||
cpu_physical_memory_write(0xc0000, bios, bios_size);
|
||||
}
|
||||
|
||||
uint32_t igd_read_opregion(XenPCIPassthroughState *s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue