mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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
This commit is contained in:
parent
98957a94ef
commit
f68d881c9b
2 changed files with 79 additions and 85 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue