From: Bharata B Rao <address@hidden>
Make DumpState and endian conversion routines available for arch-specific dump
code by moving into dump.h. DumpState will be needed by arch-specific dump
code to access target endian information from DumpState->ArchDumpInfo. Also
break the dependency of dump.h from stubs/dump.c by creating a separate
dump-arch.h.
This patch doesn't change any functionality.
Signed-off-by: Bharata B Rao <address@hidden>
[ rebased on top of current master branch,
Greg Kurz <address@hidden> ]
Signed-off-by: Greg Kurz <address@hidden>
---
dump.c | 39 +++---------------------------------
include/sysemu/dump-arch.h | 28 ++++++++++++++++++++++++++
include/sysemu/dump.h | 48
+++++++++++++++++++++++++++++++++++---------
stubs/dump.c | 2 +-
4 files changed, 70 insertions(+), 47 deletions(-)
create mode 100644 include/sysemu/dump-arch.h
diff --git a/dump.c b/dump.c
index 14b3d1d..13c9bf2 100644
--- a/dump.c
+++ b/dump.c
@@ -36,7 +36,7 @@
#define ELF_MACHINE_UNAME "Unknown"
#endif
-static uint16_t cpu_convert_to_target16(uint16_t val, int endian)
+uint16_t cpu_convert_to_target16(uint16_t val, int endian)