hw/dma/etraxfs: Include missing 'exec/memory.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 19 Jun 2023 07:28:41 +0000 (09:28 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 31 Aug 2023 17:47:43 +0000 (19:47 +0200)
The 'fs_dma_ctrl' structure has a MemoryRegion 'mmio' field
which is initialized in etraxfs_dmac_init() calling
memory_region_init_io() and memory_region_add_subregion().

These functions are declared in "exec/memory.h", along with
the MemoryRegion structure. Include the missing header.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230619074153.44268-3-philmd@linaro.org>

hw/dma/etraxfs_dma.c

index a1068b19ea32976d83d9ce4f8f20554aa8cad45a..9c0003de51d9ef3cd8ab17d4f114d6cf6e41b21c 100644 (file)
@@ -28,6 +28,7 @@
 #include "qemu/main-loop.h"
 #include "sysemu/runstate.h"
 #include "exec/address-spaces.h"
+#include "exec/memory.h"
 
 #include "hw/cris/etraxfs_dma.h"