[PATCH-for-10.2] hw/pci-host/dino: Correct PCI memory access to PA I/O range

Philippe Mathieu-Daudé posted 1 patch 2 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251123185505.53503-1-philmd@linaro.org
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Helge Deller <deller@gmx.de>
hw/pci-host/dino.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH-for-10.2] hw/pci-host/dino: Correct PCI memory access to PA I/O range
Posted by Philippe Mathieu-Daudé 2 months, 2 weeks ago
PCI memory transactions above 0xf000_0000 can access
to the whole PA space. Fix the one missing byte.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 hw/pci-host/dino.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/pci-host/dino.c b/hw/pci-host/dino.c
index 924053499c1..34aca429c98 100644
--- a/hw/pci-host/dino.c
+++ b/hw/pci-host/dino.c
@@ -466,7 +466,7 @@ static void dino_pcihost_realize(DeviceState *dev, Error **errp)
                              30 * DINO_MEM_CHUNK_SIZE);
     memory_region_init_alias(&s->bm_cpu_alias, OBJECT(s),
                              "bm-cpu", s->memory_as, 0xfff00000,
-                             0xfffff);
+                             1 * MiB);
     memory_region_add_subregion(&s->bm, 0,
                                 &s->bm_ram_alias);
     memory_region_add_subregion(&s->bm,
-- 
2.51.0