[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 5/7] dump: Introduce create_win_dump()
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v4 5/7] dump: Introduce create_win_dump() |
Date: |
Fri, 24 Feb 2023 00:17:53 +0100 |
Remove another TARGET_X86_64 #ifdef'ry by introducing
a create_win_dump() stub. We'll extract it to a stub
file for non-x86 targets in the next commit.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
dump/dump.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dump/dump.c b/dump/dump.c
index c356a88be1..b33a613d45 100644
--- a/dump/dump.c
+++ b/dump/dump.c
@@ -39,6 +39,11 @@ bool win_dump_available(Error **errp)
return false;
}
+
+void create_win_dump(DumpState *s, Error **errp)
+{
+ win_dump_available(errp);
+}
#endif
#include <zlib.h>
@@ -2031,9 +2036,7 @@ static void dump_process(DumpState *s, Error **errp)
DumpQueryResult *result = NULL;
if (s->has_format && s->format == DUMP_GUEST_MEMORY_FORMAT_WIN_DMP) {
-#ifdef TARGET_X86_64
create_win_dump(s, errp);
-#endif
} else if (s->has_format && s->format != DUMP_GUEST_MEMORY_FORMAT_ELF) {
create_kdump_vmcore(s, errp);
} else {
--
2.38.1
- Re: [PATCH v4 1/7] dump: Replace tswapN() -> cpu_to_dumpN(), (continued)
- [PATCH v4 2/7] dump: Replace TARGET_PAGE_SIZE -> qemu_target_page_size(), Philippe Mathieu-Daudé, 2023/02/23
- [PATCH v4 3/7] dump: Correct headers included, Philippe Mathieu-Daudé, 2023/02/23
- [PATCH v4 4/7] dump: Introduce win_dump_available(), Philippe Mathieu-Daudé, 2023/02/23
- [PATCH v4 5/7] dump: Introduce create_win_dump(),
Philippe Mathieu-Daudé <=
- [PATCH v4 6/7] dump: Build once by adding stubs for non-x86 targets, Philippe Mathieu-Daudé, 2023/02/23
- [PATCH v4 7/7] dump: Rename x86-specific file as win_dump_x86.c, Philippe Mathieu-Daudé, 2023/02/23