system/physmem: Un-inline cpu_physical_memory_read/write()
In order to remove cpu_physical_memory_rw() in a pair of commits, and due to a cyclic dependency between "exec/cpu-common.h" and "system/memory.h", un-inline cpu_physical_memory_read() and cpu_physical_memory_write() as a prerequired step. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20251002084203.63899-14-philmd@linaro.org>
This commit is contained in:
parent
94c460835d
commit
be481476ba
2 changed files with 12 additions and 10 deletions
|
|
@ -3186,6 +3186,16 @@ void cpu_physical_memory_rw(hwaddr addr, void *buf,
|
|||
buf, len, is_write);
|
||||
}
|
||||
|
||||
void cpu_physical_memory_read(hwaddr addr, void *buf, hwaddr len)
|
||||
{
|
||||
cpu_physical_memory_rw(addr, buf, len, false);
|
||||
}
|
||||
|
||||
void cpu_physical_memory_write(hwaddr addr, const void *buf, hwaddr len)
|
||||
{
|
||||
cpu_physical_memory_rw(addr, (void *)buf, len, true);
|
||||
}
|
||||
|
||||
/* used for ROM loading : can write in RAM and ROM */
|
||||
MemTxResult address_space_write_rom(AddressSpace *as, hwaddr addr,
|
||||
MemTxAttrs attrs,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue