summary refs log tree commit diff stats
path: root/system/physmem.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-05-02 17:14:42 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-05-03 15:47:48 +0200
commit15d62536a9ec78db9ab07b113e5e07a6e02e52fb (patch)
tree98c8c3daa1802fc3a09052ea1db3a71519cea59e /system/physmem.c
parentda4b248178b51b8dff26de5e3c4ea8ea4b53f5d1 (diff)
downloadfocaccia-qemu-15d62536a9ec78db9ab07b113e5e07a6e02e52fb.tar.gz
focaccia-qemu-15d62536a9ec78db9ab07b113e5e07a6e02e52fb.zip
tcg: remove CPU* types from typedefs.h
hw/core/cpu.h is already using struct forward declarations in some cases
to avoid inclusions, and otherwise CPUAddressSpace and CPUJumpCache
are only used together with their definition.  CPUTLBEntryFull is
always used when their definition is available.  Remove all three
from typedefs.h.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'system/physmem.c')
-rw-r--r--system/physmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/physmem.c b/system/physmem.c
index 1a81c226ba..6dc58b34bb 100644
--- a/system/physmem.c
+++ b/system/physmem.c
@@ -158,12 +158,12 @@ static void tcg_commit(MemoryListener *listener);
  * @memory_dispatch: its dispatch pointer (cached, RCU protected)
  * @tcg_as_listener: listener for tracking changes to the AddressSpace
  */
-struct CPUAddressSpace {
+typedef struct CPUAddressSpace {
     CPUState *cpu;
     AddressSpace *as;
     struct AddressSpaceDispatch *memory_dispatch;
     MemoryListener tcg_as_listener;
-};
+} CPUAddressSpace;
 
 struct DirtyBitmapSnapshot {
     ram_addr_t start;