aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/sd/sdhci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
index fe2f21f0c3..0e5e988927 100644
--- a/hw/sd/sdhci.c
+++ b/hw/sd/sdhci.c
@@ -741,6 +741,7 @@ static void sdhci_do_adma(SDHCIState *s)
{
unsigned int begin, length;
const uint16_t block_size = s->blksize & BLOCK_SIZE_MASK;
+ const MemTxAttrs attrs = { .memory = true };
ADMADescr dscr = {};
MemTxResult res;
int i;
@@ -794,7 +795,7 @@ static void sdhci_do_adma(SDHCIState *s)
res = dma_memory_write(s->dma_as, dscr.addr,
&s->fifo_buffer[begin],
s->data_count - begin,
- MEMTXATTRS_UNSPECIFIED);
+ attrs);
if (res != MEMTX_OK) {
break;
}
@@ -823,7 +824,7 @@ static void sdhci_do_adma(SDHCIState *s)
res = dma_memory_read(s->dma_as, dscr.addr,
&s->fifo_buffer[begin],
s->data_count - begin,
- MEMTXATTRS_UNSPECIFIED);
+ attrs);
if (res != MEMTX_OK) {
break;
}