On 12/17/25 6:31 AM, Philippe Mathieu-Daudé wrote:
We have 115 direct inclusions of "system/memory.h", and 91 headers
in include/ use it: hundreds of files have to process it.
However only one single header really uses the MemoryRegionCache
API: "hw/virtio/virtio-access.h". Split it out to a new header,
avoiding processing unused inlined functions hundreds of times.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
MAINTAINERS | 1 +
include/hw/virtio/virtio-access.h | 1 +
include/system/memory.h | 185 --------------------------
include/system/memory_cached.h | 207 ++++++++++++++++++++++++++++++
system/physmem.c | 1 +
5 files changed, 210 insertions(+), 185 deletions(-)
create mode 100644 include/system/memory_cached.h
Reviewed-by: Pierrick Bouvier <[email protected]>