From: Cédric Le Goater Date: Sat, 1 May 2021 08:03:51 +0000 (+0200) Subject: aspeed/i2c: Fix DMA address mask X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7492515909f043c4d82909ecdebb8643ed944c68;p=qmiga%2Fqemu.git 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é Signed-off-by: Cédric Le Goater Message-Id: <20210407171637.777743-4-clg@kaod.org> Signed-off-by: Cédric Le Goater --- diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c index 518a3f5c6f..e713352889 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: