On Tue, 10 Dec 2024 at 15:00, Peter Maydell <peter.maydell@linaro.org> wrote:
On Tue, 10 Dec 2024 at 14:01, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
cpu_physical_memory_rw() API is documented as legacy
since 2017 (commit b7ecba0f6f6). Replace it by a more
recent API. Noticed while discussing with Peter:
e979b3ba-e701-4ac6-962a-19e4598ba947@linaro.org">https://lore.kernel.org/qemu-devel/e979b3ba-e701-4ac6-962a-19e4598ba947@linaro.org
I'm not sure we want to do this as a bulk automated
transformation, because in each case there is likely
a better thing we can do with the call than to use
address_space_memory. For example most of the uses in
devices probably want to have the device have an
AddressSpace property that the board wires up.
Also, examining each use gives us an opportunity to
consider the error handling (cpu_physical_memory_*()
drop errors silently) and whether there's an appropriate
MemTxAttrs we want to use.