]> Git Repo - qemu.git/blobdiff - include/exec/memory.h
memory: make section size a 128-bit integer
[qemu.git] / include / exec / memory.h
index c11a3f8e9c719a24c8a9c1947b8a4a658a7eb8af..fddc6ada2720a600eda90cf1dd45146e938bff4c 100644 (file)
@@ -26,6 +26,9 @@
 #include "exec/ioport.h"
 #include "qemu/int128.h"
 
+#define MAX_PHYS_ADDR_SPACE_BITS 62
+#define MAX_PHYS_ADDR            (((hwaddr)1 << MAX_PHYS_ADDR_SPACE_BITS) - 1)
+
 typedef struct MemoryRegionOps MemoryRegionOps;
 typedef struct MemoryRegionPortio MemoryRegionPortio;
 typedef struct MemoryRegionMmio MemoryRegionMmio;
@@ -185,7 +188,7 @@ struct MemoryRegionSection {
     MemoryRegion *mr;
     AddressSpace *address_space;
     hwaddr offset_within_region;
-    uint64_t size;
+    Int128 size;
     hwaddr offset_within_address_space;
     bool readonly;
 };
This page took 0.024049 seconds and 4 git commands to generate.