disas: Remove target-specific headers
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 3 May 2023 07:23:29 +0000 (08:23 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 11 May 2023 08:49:55 +0000 (09:49 +0100)
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230503072331.1747057-83-richard.henderson@linaro.org>

disas/disas.c
include/disas/disas.h

index aac7cf3b03df720ad611e36bc000055d7d15d21a..a06954254b41f413700d445ef3aba8b2b912f371 100644 (file)
@@ -3,9 +3,10 @@
 #include "disas/dis-asm.h"
 #include "elf.h"
 #include "qemu/qemu-print.h"
-
 #include "disas/disas.h"
 #include "disas/capstone.h"
+#include "hw/core/cpu.h"
+#include "exec/memory.h"
 
 typedef struct CPUDebug {
     struct disassemble_info info;
index 6c394e0b095e0460f25b4e51b5200378e8207b62..176775eff772cdffff86033d44b1ae638b2da54f 100644 (file)
@@ -1,11 +1,6 @@
 #ifndef QEMU_DISAS_H
 #define QEMU_DISAS_H
 
-#include "exec/hwaddr.h"
-
-#ifdef NEED_CPU_H
-#include "cpu.h"
-
 /* Disassemble this for me please... (debugging). */
 void disas(FILE *out, const void *code, size_t size);
 void target_disas(FILE *out, CPUState *cpu, uint64_t code, size_t size);
@@ -17,7 +12,6 @@ char *plugin_disas(CPUState *cpu, uint64_t addr, size_t size);
 
 /* Look up symbol for debugging purpose.  Returns "" if unknown. */
 const char *lookup_symbol(uint64_t orig_addr);
-#endif
 
 struct syminfo;
 struct elf32_sym;