From 0bc3cd624f1d59456cad769bb07e84066a2ddaf9 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 8 Apr 2013 17:29:59 +0200 Subject: 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 --- dump.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dump.c') 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; -- cgit v1.2.1