summaryrefslogtreecommitdiff
path: root/hw/zynq_slcr.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-03-09 06:29:15 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2012-03-09 07:02:50 -0600
commit0d10f627089066fc58894c1fa4b066503ed6bac3 (patch)
tree07367012f6b11c9f31a0db38710d2ee307fa2d09 /hw/zynq_slcr.c
parente32605062cd62c2a958ad28a6ad7de4eeab12027 (diff)
downloadqemu-0d10f627089066fc58894c1fa4b066503ed6bac3.tar.gz
qemu-0d10f627089066fc58894c1fa4b066503ed6bac3.tar.bz2
qemu-0d10f627089066fc58894c1fa4b066503ed6bac3.zip
xilinx_zynq: fix the build
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/zynq_slcr.c')
-rw-r--r--hw/zynq_slcr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/zynq_slcr.c b/hw/zynq_slcr.c
index b785f0441c..4f97575770 100644
--- a/hw/zynq_slcr.c
+++ b/hw/zynq_slcr.c
@@ -311,7 +311,7 @@ static inline uint32_t zynq_slcr_read_imp(void *opaque,
case 0xA50:
return s->dmac_ram;
case 0xA60 ... 0xA8C:
- return s->afi[0][(offset - 0x700) / 4];
+ return s->afi[0][(offset - 0xA60) / 4];
case 0xA90 ... 0xA98:
return s->ocm[(offset - 0xA90) / 4];
case 0xAA0:
@@ -454,7 +454,7 @@ static void zynq_slcr_write(void *opaque, target_phys_addr_t offset,
s->dmac_ram = val;
break;
case 0xA60 ... 0xA8C:
- s->afi[0][(offset - 0x700) / 4] = val;
+ s->afi[0][(offset - 0xA60) / 4] = val;
break;
case 0xA90:
s->ocm[0] = val;