mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
memory: Let ReservedRegion use Range
A reserved region is a range tagged with a type. Let's directly use the Range type in the prospect to reuse some of the library helpers shipped with the Range type. Signed-off-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: "Michael S. Tsirkin" <mst@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
committed by
Cédric Le Goater
parent
d762bf9793
commit
e8f433f80e
@@ -24,6 +24,7 @@
|
||||
#include "qemu/bswap.h"
|
||||
#include "qemu/queue.h"
|
||||
#include "qemu/int128.h"
|
||||
#include "qemu/range.h"
|
||||
#include "qemu/notify.h"
|
||||
#include "qom/object.h"
|
||||
#include "qemu/rcu.h"
|
||||
@@ -79,8 +80,7 @@ extern unsigned int global_dirty_tracking;
|
||||
typedef struct MemoryRegionOps MemoryRegionOps;
|
||||
|
||||
struct ReservedRegion {
|
||||
hwaddr low;
|
||||
hwaddr high;
|
||||
Range range;
|
||||
unsigned type;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user