diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-02-16 09:37:37 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-02-20 14:56:07 +0000 |
commit | cc81145ce20e529efa0580d4c328d20280a4d9dc (patch) | |
tree | 011256dd68d81f9edd2f521f1275459efc796940 /include/hw | |
parent | 0578d525513ec1ace5db3088ba908ddee7966f8f (diff) |
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>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/arm/armv7m.h | 2 |
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" |