mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Let address_space_rw() calls pass a boolean 'is_write' argument
Since its introduction in commit ac1970fbe8
, address_space_rw()
takes a boolean 'is_write' argument. Fix the codebase by using
an explicit boolean type.
This commit was produced with the included Coccinelle script
scripts/coccinelle/exec_rw_const.
Inspired-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
ae5883abec
commit
1ccda935d4
7 changed files with 41 additions and 27 deletions
4
exec.c
4
exec.c
|
@ -3815,8 +3815,8 @@ int cpu_memory_rw_debug(CPUState *cpu, target_ulong addr,
|
|||
address_space_write_rom(cpu->cpu_ases[asidx].as, phys_addr,
|
||||
attrs, buf, l);
|
||||
} else {
|
||||
address_space_rw(cpu->cpu_ases[asidx].as, phys_addr,
|
||||
attrs, buf, l, 0);
|
||||
address_space_rw(cpu->cpu_ases[asidx].as, phys_addr, attrs, buf,
|
||||
l, false);
|
||||
}
|
||||
len -= l;
|
||||
buf += l;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue