Skip to content

Commit

Permalink
cpu-target: Include missing 'exec/memory.h' header
Browse files Browse the repository at this point in the history
Include "exec/memory.h" in order to avoid:

  cpu-target.c:201:50: error: use of undeclared identifier 'TYPE_MEMORY_REGION'
      DEFINE_PROP_LINK("memory", CPUState, memory, TYPE_MEMORY_REGION,
                                                   ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
philmd authored and Michael Tokarev committed Feb 13, 2024
1 parent 0ccebcd commit 5f8d88b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpu-target.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#else
#include "hw/core/sysemu-cpu-ops.h"
#include "exec/address-spaces.h"
#include "exec/memory.h"
#endif
#include "sysemu/cpus.h"
#include "sysemu/tcg.h"
Expand Down

0 comments on commit 5f8d88b

Please sign in to comment.