diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-04 12:19:22 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-04 12:19:22 +0000 |
commit | cf965d24064671ce2d5a874e532b8189fdb6e863 (patch) | |
tree | 5e6f1592b093c18778815beaf000b88041524a74 /hw/omap_mmc.c | |
parent | 51a652717490eaa2d1d03cfa940126ac538f6bdc (diff) | |
download | hqemu-cf965d24064671ce2d5a874e532b8189fdb6e863.zip hqemu-cf965d24064671ce2d5a874e532b8189fdb6e863.tar.gz |
Add register mappings in DSP space (must be accessible for MPU too).
Don't set microwire CSR-busy bit too early.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3530 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/omap_mmc.c')
-rw-r--r-- | hw/omap_mmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/omap_mmc.c b/hw/omap_mmc.c index 008318d..406b404 100644 --- a/hw/omap_mmc.c +++ b/hw/omap_mmc.c @@ -269,7 +269,7 @@ static uint32_t omap_mmc_read(void *opaque, target_phys_addr_t offset) { uint16_t i; struct omap_mmc_s *s = (struct omap_mmc_s *) opaque; - offset -= s->base; + offset &= OMAP_MPUI_REG_MASK; switch (offset) { case 0x00: /* MMC_CMD */ @@ -351,7 +351,7 @@ static void omap_mmc_write(void *opaque, target_phys_addr_t offset, { int i; struct omap_mmc_s *s = (struct omap_mmc_s *) opaque; - offset -= s->base; + offset &= OMAP_MPUI_REG_MASK; switch (offset) { case 0x00: /* MMC_CMD */ |