On 12/18/25 01:31, 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: Richard Henderson <[email protected]>

r~

Reply via email to