diff options
author | Cédric Le Goater <clg@kaod.org> | 2021-05-01 10:03:51 +0200 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2021-05-01 10:03:51 +0200 |
commit | 7492515909f043c4d82909ecdebb8643ed944c68 (patch) | |
tree | 35629fcfbe05f6d005f1d62b14565584ab101355 /hw/i2c | |
parent | d177892d4a48668a422772e19bed9b6baa384a08 (diff) | |
download | qemu-7492515909f043c4d82909ecdebb8643ed944c68.zip qemu-7492515909f043c4d82909ecdebb8643ed944c68.tar.gz qemu-7492515909f043c4d82909ecdebb8643ed944c68.tar.bz2 |
aspeed/i2c: Fix DMA address mask
The RAM memory region is now used for DMAs accesses instead of the
memory address space region. Mask off the top bits of the DMA address
to reflect this change.
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20210407171637.777743-4-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/i2c')
-rw-r--r-- | hw/i2c/aspeed_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c index 518a3f5..e713352 100644 --- a/hw/i2c/aspeed_i2c.c +++ b/hw/i2c/aspeed_i2c.c @@ -601,7 +601,7 @@ static void aspeed_i2c_bus_write(void *opaque, hwaddr offset, break; } - bus->dma_addr = value & 0xfffffffc; + bus->dma_addr = value & 0x3ffffffc; break; case I2CD_DMA_LEN: |