mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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>
This commit is contained in:
parent
28c80bfe8b
commit
85eb7c18ee
17 changed files with 43 additions and 26 deletions
|
@ -19,6 +19,20 @@ expression E1, E2, E3, E4, E5;
|
|||
|
|
||||
- address_space_rw(E1, E2, E3, E4, E5, 1)
|
||||
+ address_space_rw(E1, E2, E3, E4, E5, true)
|
||||
|
|
||||
|
||||
- cpu_physical_memory_rw(E1, E2, E3, 0)
|
||||
+ cpu_physical_memory_rw(E1, E2, E3, false)
|
||||
|
|
||||
- cpu_physical_memory_rw(E1, E2, E3, 1)
|
||||
+ cpu_physical_memory_rw(E1, E2, E3, true)
|
||||
|
|
||||
|
||||
- cpu_physical_memory_map(E1, E2, 0)
|
||||
+ cpu_physical_memory_map(E1, E2, false)
|
||||
|
|
||||
- cpu_physical_memory_map(E1, E2, 1)
|
||||
+ cpu_physical_memory_map(E1, E2, true)
|
||||
)
|
||||
|
||||
// Use address_space_write instead of casting to non-const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue