summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorPeter Maydell2017-02-20 16:36:01 +0100
committerPeter Maydell2017-02-28 17:18:49 +0100
commitf68d881c9b2acee616b3baa7cc00a94a72f518f5 (patch)
tree57314b610ff7e4193c7cf04285845c7ae879457b /include/hw
parentarmv7m: Make NVIC expose a memory region rather than mapping itself (diff)
downloadqemu-f68d881c9b2acee616b3baa7cc00a94a72f518f5.tar.gz
qemu-f68d881c9b2acee616b3baa7cc00a94a72f518f5.tar.xz
qemu-f68d881c9b2acee616b3baa7cc00a94a72f518f5.zip
armv7m: Make bitband device take the address space to access
Instead of the bitband device doing a cpu_physical_memory_read/write, make it take a MemoryRegion which specifies where it should be accessing, and use address_space_read/write to access the corresponding AddressSpace. Since this entails pretty much a rewrite, convert away from old_mmio in the process. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-id: 1487604965-23220-8-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/arm/armv7m.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/arm/armv7m.h b/include/hw/arm/armv7m.h
index 3333c91e88..a9b3f2ab35 100644
--- a/include/hw/arm/armv7m.h
+++ b/include/hw/arm/armv7m.h
@@ -21,8 +21,10 @@ typedef struct {
SysBusDevice parent_obj;
/*< public >*/
+ AddressSpace *source_as;
MemoryRegion iomem;
uint32_t base;
+ MemoryRegion *source_memory;
} BitBandState;
#define TYPE_ARMV7M "armv7m"