Просмотр исходного кода

monitor/target: Include missing 'exec/memory.h' header

Include "exec/memory.h" in order to avoid:

  monitor/hmp-cmds-target.c:263:10: error: call to undeclared function 'memory_region_is_ram';
  ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      if (!memory_region_is_ram(mrs.mr) && !memory_region_is_romd(mrs.mr)) {
           ^

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>
Philippe Mathieu-Daudé 1 год назад
Родитель
Сommit
f6e33708bb
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      monitor/hmp-cmds-target.c

+ 1 - 0
monitor/hmp-cmds-target.c

@@ -25,6 +25,7 @@
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include "disas/disas.h"
 #include "disas/disas.h"
 #include "exec/address-spaces.h"
 #include "exec/address-spaces.h"
+#include "exec/memory.h"
 #include "monitor/hmp-target.h"
 #include "monitor/hmp-target.h"
 #include "monitor/monitor-internal.h"
 #include "monitor/monitor-internal.h"
 #include "qapi/error.h"
 #include "qapi/error.h"