summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-04-08 17:29:59 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-04-15 18:19:26 +0200
commit0bc3cd624f1d59456cad769bb07e84066a2ddaf9 (patch)
treef4ef49e589605b99ceb087941ea164203564694b /dump.c
parentdccfcd0e5f8f37360ebda11ccc4dab164c04d5a3 (diff)
downloadqemu-0bc3cd624f1d59456cad769bb07e84066a2ddaf9.tar.gz
include: avoid useless includes of exec/ headers
Headers in include/exec/ are for the deepest innards of QEMU, they should almost never be included directly. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index a25f5096eb..b34f143c42 100644
--- a/dump.c
+++ b/dump.c
@@ -23,7 +23,6 @@
#include "sysemu/memory_mapping.h"
#include "qapi/error.h"
#include "qmp-commands.h"
-#include "exec/gdbstub.h"
static uint16_t cpu_convert_to_target16(uint16_t val, int endian)
{
@@ -268,6 +267,11 @@ static int write_elf64_note(DumpState *s)
return 0;
}
+static inline int cpu_index(CPUState *cpu)
+{
+ return cpu->cpu_index + 1;
+}
+
static int write_elf64_notes(DumpState *s)
{
CPUArchState *env;