memory: use 128-bit integers for sizes and intermediates
Since the memory API supports 64-bit buses, it needs a larger type to represent intermediate results. Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
b7cd3db6f4
commit
08dafab4bd
2 changed files with 115 additions and 81 deletions
3
memory.h
3
memory.h
|
|
@ -24,6 +24,7 @@
|
|||
#include "qemu-queue.h"
|
||||
#include "iorange.h"
|
||||
#include "ioport.h"
|
||||
#include "int128.h"
|
||||
|
||||
typedef struct MemoryRegionOps MemoryRegionOps;
|
||||
typedef struct MemoryRegion MemoryRegion;
|
||||
|
|
@ -105,7 +106,7 @@ struct MemoryRegion {
|
|||
const MemoryRegionOps *ops;
|
||||
void *opaque;
|
||||
MemoryRegion *parent;
|
||||
uint64_t size;
|
||||
Int128 size;
|
||||
target_phys_addr_t addr;
|
||||
target_phys_addr_t offset;
|
||||
bool backend_registered;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue