summaryrefslogtreecommitdiffstats
path: root/hw/scsi/vmw_pvscsi.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias2013-12-17 06:07:29 +0100
committerEdgar E. Iglesias2014-02-11 13:57:18 +0100
commitab1da85791340e504d10487e1add81b9988afa98 (patch)
treecb10f475f6c830ff9f45a6436eb96125bf220ef3 /hw/scsi/vmw_pvscsi.c
parentexec: Make stq_*_phys input an AddressSpace (diff)
downloadqemu-ab1da85791340e504d10487e1add81b9988afa98.tar.gz
qemu-ab1da85791340e504d10487e1add81b9988afa98.tar.xz
qemu-ab1da85791340e504d10487e1add81b9988afa98.zip
exec: Make stl_*_phys input an AddressSpace
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'hw/scsi/vmw_pvscsi.c')
-rw-r--r--hw/scsi/vmw_pvscsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c
index 6cc6c1b036..7d344b944e 100644
--- a/hw/scsi/vmw_pvscsi.c
+++ b/hw/scsi/vmw_pvscsi.c
@@ -46,7 +46,8 @@
(ldl_le_phys(&address_space_memory, \
rs_pa + offsetof(struct PVSCSIRingsState, field)))
#define RS_SET_FIELD(rs_pa, field, val) \
- (stl_le_phys(rs_pa + offsetof(struct PVSCSIRingsState, field), val))
+ (stl_le_phys(&address_space_memory, \
+ rs_pa + offsetof(struct PVSCSIRingsState, field), val))
#define TYPE_PVSCSI "pvscsi"
#define PVSCSI(obj) OBJECT_CHECK(PVSCSIState, (obj), TYPE_PVSCSI)