mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 13:23:54 -06:00
exec: Restrict memory-internal.h to system/
Only file units within the system/ directory need access to
"memory-internal.h". Restrict its scope by moving it there.
The comment from commit 9d70618c68
("memory-internal.h:
Remove obsolete claim that header is obsolete") is now obsolete,
remove it.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250317161329.40300-3-philmd@linaro.org>
This commit is contained in:
parent
261a0303ae
commit
d4c9cab37f
4 changed files with 5 additions and 10 deletions
|
@ -3129,7 +3129,7 @@ F: system/ioport.c
|
|||
F: system/memory.c
|
||||
F: system/memory_mapping.c
|
||||
F: system/physmem.c
|
||||
F: include/exec/memory-internal.h
|
||||
F: system/memory-internal.h
|
||||
F: scripts/coccinelle/memory-region-housekeeping.cocci
|
||||
|
||||
Memory devices
|
||||
|
|
|
@ -11,12 +11,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* This header is for use by exec.c, memory.c and accel/tcg/cputlb.c ONLY,
|
||||
* for declarations which are shared between the memory subsystem's
|
||||
* internals and the TCG TLB code. Do not include it from elsewhere.
|
||||
*/
|
||||
|
||||
#ifndef MEMORY_INTERNAL_H
|
||||
#define MEMORY_INTERNAL_H
|
||||
|
|
@ -24,8 +24,6 @@
|
|||
#include "qemu/qemu-print.h"
|
||||
#include "qom/object.h"
|
||||
#include "trace.h"
|
||||
|
||||
#include "exec/memory-internal.h"
|
||||
#include "system/ram_addr.h"
|
||||
#include "system/kvm.h"
|
||||
#include "system/runstate.h"
|
||||
|
@ -35,6 +33,8 @@
|
|||
#include "migration/vmstate.h"
|
||||
#include "system/address-spaces.h"
|
||||
|
||||
#include "memory-internal.h"
|
||||
|
||||
//#define DEBUG_UNASSIGNED
|
||||
|
||||
static unsigned memory_region_transaction_depth;
|
||||
|
|
|
@ -66,7 +66,6 @@
|
|||
#include "qemu/main-loop.h"
|
||||
#include "system/replay.h"
|
||||
|
||||
#include "exec/memory-internal.h"
|
||||
#include "system/ram_addr.h"
|
||||
|
||||
#include "qemu/pmem.h"
|
||||
|
@ -88,6 +87,8 @@
|
|||
#include <daxctl/libdaxctl.h>
|
||||
#endif
|
||||
|
||||
#include "memory-internal.h"
|
||||
|
||||
//#define DEBUG_SUBPAGE
|
||||
|
||||
/* ram_list is read under rcu_read_lock()/rcu_read_unlock(). Writes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue