diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-04-08 17:29:59 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-04-15 18:19:26 +0200 |
commit | 0bc3cd624f1d59456cad769bb07e84066a2ddaf9 (patch) | |
tree | f4ef49e589605b99ceb087941ea164203564694b /dump.c | |
parent | dccfcd0e5f8f37360ebda11ccc4dab164c04d5a3 (diff) |
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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |