On Thu, 19 Mar 2026, Philippe Mathieu-Daudé wrote:
Prefer the address_space_ld/st API over the legacy ld_phys()
because it allow checking for bus access fault.
This code however doesn't check for fault, so we simply inline
the calls (not specifying any memory transaction attribute nor
expecting transation result) per the definition in
"system/memory_ldst_phys_endian.h.inc":
Recently when trying to remove _nomigrate memory region functions I was
told if some convenience function has more than 1 use it's probably worth
to keep it. This looks like similar case even more so as the replacement
is unnecessarily more complicated. So what's the problem with ld_phys in
the first place and why do you want to replace it with a less convenient
function? If there's a reason maybe say that in the commit message.
Regards,
BALATON Zoltan