aboutsummaryrefslogtreecommitdiff
path: root/disas/disas-internal.h
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-05-09 17:14:36 +0100
committerRichard Henderson <richard.henderson@linaro.org>2023-05-11 09:49:55 +0100
commite22d3c48db6fea230a24881a6a29766f2156283a (patch)
treeeb283cc308101cec319202e3f32159038df5d64f /disas/disas-internal.h
parent45dfbd4320cc29a06b4921fe21a145e9a4f87323 (diff)
downloadqemu-e22d3c48db6fea230a24881a6a29766f2156283a.zip
qemu-e22d3c48db6fea230a24881a6a29766f2156283a.tar.gz
qemu-e22d3c48db6fea230a24881a6a29766f2156283a.tar.bz2
disas: Move softmmu specific code to separate file
We'd like to move disas.c into the common code source set, where CONFIG_USER_ONLY is not available anymore. So we have to move the related code into a separate file instead. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20230508133745.109463-2-thuth@redhat.com> [rth: Type change done in a separate patch] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'disas/disas-internal.h')
-rw-r--r--disas/disas-internal.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/disas/disas-internal.h b/disas/disas-internal.h
new file mode 100644
index 0000000..84a01f1
--- /dev/null
+++ b/disas/disas-internal.h
@@ -0,0 +1,21 @@
+/*
+ * Definitions used internally in the disassembly code
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef DISAS_INTERNAL_H
+#define DISAS_INTERNAL_H
+
+#include "disas/dis-asm.h"
+
+typedef struct CPUDebug {
+ struct disassemble_info info;
+ CPUState *cpu;
+} CPUDebug;
+
+void disas_initialize_debug_target(CPUDebug *s, CPUState *cpu);
+int disas_gstring_printf(FILE *stream, const char *fmt, ...)
+ G_GNUC_PRINTF(2, 3);
+
+#endif