diff options
Diffstat (limited to 'dump/win_dump.c')
-rw-r--r-- | dump/win_dump.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dump/win_dump.c b/dump/win_dump.c index ba7fa40..ff9c5bd 100644 --- a/dump/win_dump.c +++ b/dump/win_dump.c @@ -18,6 +18,13 @@ #include "win_dump.h" #include "cpu.h" +#if defined(TARGET_X86_64) + +bool win_dump_available(Error **errp) +{ + return true; +} + static size_t win_dump_ptr_size(bool x64) { return x64 ? sizeof(uint64_t) : sizeof(uint32_t); @@ -470,3 +477,14 @@ out_cr3: return; } + +#else /* !TARGET_X86_64 */ + +bool win_dump_available(Error **errp) +{ + error_setg(errp, "Windows dump is only available for x86-64"); + + return false; +} + +#endif |