mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
exec: Make ldq/ldub_*_phys input an AddressSpace
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
fdfba1a298
commit
2c17449b30
25 changed files with 184 additions and 136 deletions
|
@ -324,7 +324,7 @@ static uint64_t s390_virtio_device_vq_token(VirtIOS390Device *dev, int vq)
|
|||
(vq * VIRTIO_VQCONFIG_LEN) +
|
||||
VIRTIO_VQCONFIG_OFFS_TOKEN;
|
||||
|
||||
return ldq_be_phys(token_off);
|
||||
return ldq_be_phys(&address_space_memory, token_off);
|
||||
}
|
||||
|
||||
static ram_addr_t s390_virtio_device_num_vq(VirtIOS390Device *dev)
|
||||
|
@ -405,7 +405,8 @@ void s390_virtio_device_update_status(VirtIOS390Device *dev)
|
|||
VirtIODevice *vdev = dev->vdev;
|
||||
uint32_t features;
|
||||
|
||||
virtio_set_status(vdev, ldub_phys(dev->dev_offs + VIRTIO_DEV_OFFS_STATUS));
|
||||
virtio_set_status(vdev, ldub_phys(&address_space_memory,
|
||||
dev->dev_offs + VIRTIO_DEV_OFFS_STATUS));
|
||||
|
||||
/* Update guest supported feature bitmap */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue