mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -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
|
@ -89,7 +89,7 @@ static void rtas_nvram_fetch(PowerPCCPU *cpu, SpaprMachineState *spapr,
|
|||
|
||||
assert(nvram->buf);
|
||||
|
||||
membuf = cpu_physical_memory_map(buffer, &len, 1);
|
||||
membuf = cpu_physical_memory_map(buffer, &len, true);
|
||||
memcpy(membuf, nvram->buf + offset, len);
|
||||
cpu_physical_memory_unmap(membuf, len, 1, len);
|
||||
|
||||
|
@ -127,7 +127,7 @@ static void rtas_nvram_store(PowerPCCPU *cpu, SpaprMachineState *spapr,
|
|||
return;
|
||||
}
|
||||
|
||||
membuf = cpu_physical_memory_map(buffer, &len, 0);
|
||||
membuf = cpu_physical_memory_map(buffer, &len, false);
|
||||
|
||||
alen = len;
|
||||
if (nvram->blk) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue