diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2022-12-17 00:16:48 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-08-31 19:47:43 +0200 |
commit | ae4994d2c803794ac63d9351366b60541584e5c5 (patch) | |
tree | b865e89f26be1a0f68c98c857ce8df2c4a045025 | |
parent | f703f1ef99bea3a00eb9b8c321443eab507e7e63 (diff) | |
download | qemu-ae4994d2c803794ac63d9351366b60541584e5c5.zip qemu-ae4994d2c803794ac63d9351366b60541584e5c5.tar.gz qemu-ae4994d2c803794ac63d9351366b60541584e5c5.tar.bz2 |
hw/net/i82596: Include missing 'exec/address-spaces.h' header
hw/net/i82596.c access the global 'address_space_memory'
calling the ld/st_phys() API. address_space_memory is
declared in "exec/address-spaces.h". Currently this header
is indirectly pulled in via another header. Explicitly include
it to avoid when refactoring unrelated headers:
hw/net/i82596.c:91:23: error: use of undeclared identifier 'address_space_memory'; did you mean 'address_space_destroy'?
return ldub_phys(&address_space_memory, addr);
^~~~~~~~~~~~~~~~~~~~
address_space_destroy
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230619074153.44268-2-philmd@linaro.org>
-rw-r--r-- | hw/net/i82596.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/net/i82596.c b/hw/net/i82596.c index ab26f8b..6defa9d 100644 --- a/hw/net/i82596.c +++ b/hw/net/i82596.c @@ -15,6 +15,7 @@ #include "hw/irq.h" #include "hw/qdev-properties.h" #include "migration/vmstate.h" +#include "exec/address-spaces.h" #include "qemu/module.h" #include "trace.h" #include "i82596.h" |