mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
dma: Let st*_dma() take MemTxAttrs argument
Let devices specify transaction attributes when calling st*_dma(). Keep the default MEMTXATTRS_UNSPECIFIED in the few callers. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20211223115554.3155328-16-philmd@redhat.com>
This commit is contained in:
parent
292e13142d
commit
2280c27afc
4 changed files with 18 additions and 11 deletions
|
@ -360,7 +360,7 @@ static void fw_cfg_dma_transfer(FWCfgState *s)
|
|||
if (dma_memory_read(s->dma_as, dma_addr,
|
||||
&dma, sizeof(dma), MEMTXATTRS_UNSPECIFIED)) {
|
||||
stl_be_dma(s->dma_as, dma_addr + offsetof(FWCfgDmaAccess, control),
|
||||
FW_CFG_DMA_CTL_ERROR);
|
||||
FW_CFG_DMA_CTL_ERROR, MEMTXATTRS_UNSPECIFIED);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -446,7 +446,7 @@ static void fw_cfg_dma_transfer(FWCfgState *s)
|
|||
}
|
||||
|
||||
stl_be_dma(s->dma_as, dma_addr + offsetof(FWCfgDmaAccess, control),
|
||||
dma.control);
|
||||
dma.control, MEMTXATTRS_UNSPECIFIED);
|
||||
|
||||
trace_fw_cfg_read(s, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue