include: reorganize memory API headers

Move RAMBlock functions out of ram_addr.h and cpu-common.h;
move memory API headers out of include/exec and into include/system.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini
2025-11-27 09:41:14 +01:00
parent 048a23851c
commit 7f548b8f23
102 changed files with 298 additions and 234 deletions

View File

@@ -1,5 +1,5 @@
#include "qemu/osdep.h"
#include "exec/cpu-common.h"
#include "system/ramblock.h"
RAMBlock *qemu_ram_block_from_host(void *ptr, bool round_offset,
ram_addr_t *offset)

View File

@@ -1,6 +1,6 @@
#include "qemu/osdep.h"
#include "exec/ramlist.h"
#include "exec/cpu-common.h"
#include "system/ramlist.h"
#include "system/ramblock.h"
#include "system/memory.h"
void *qemu_ram_get_host_addr(RAMBlock *rb)