mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
exec: Make stq_*_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
41701aa4ee
commit
f606604f1c
18 changed files with 131 additions and 91 deletions
|
@ -517,7 +517,8 @@ static void megasas_complete_frame(MegasasState *s, uint64_t context)
|
|||
tail = s->reply_queue_head;
|
||||
if (megasas_use_queue64(s)) {
|
||||
queue_offset = tail * sizeof(uint64_t);
|
||||
stq_le_phys(s->reply_queue_pa + queue_offset, context);
|
||||
stq_le_phys(&address_space_memory,
|
||||
s->reply_queue_pa + queue_offset, context);
|
||||
} else {
|
||||
queue_offset = tail * sizeof(uint32_t);
|
||||
stl_le_phys(s->reply_queue_pa + queue_offset, context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue