Module: wine Branch: master Commit: dfe94187c0ed71e9d43dfb80e72e4ea58e3044c8 URL: https://gitlab.winehq.org/wine/wine/-/commit/dfe94187c0ed71e9d43dfb80e72e4ea...
Author: André Zwing nerv@dawncrow.de Date: Tue May 23 20:24:33 2023 +0200
winedump: Recognize RISC-V PEs.
---
include/winnt.h | 3 +++ tools/winedump/pe.c | 3 +++ 2 files changed, 6 insertions(+)
diff --git a/include/winnt.h b/include/winnt.h index 64408126cba..66746d7f6ae 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -2651,6 +2651,9 @@ typedef struct _IMAGE_VXD_HEADER { #define IMAGE_FILE_MACHINE_ARM64EC 0xa641 #define IMAGE_FILE_MACHINE_ARM64X 0xa64e #define IMAGE_FILE_MACHINE_ARM64 0xaa64 +#define IMAGE_FILE_MACHINE_RISCV32 0x5032 +#define IMAGE_FILE_MACHINE_RISCV64 0x5064 +#define IMAGE_FILE_MACHINE_RISCV128 0x5128 #define IMAGE_FILE_MACHINE_CEE 0xc0ee
#define IMAGE_SIZEOF_FILE_HEADER 20 diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index bf3aa6b4d69..5c2898b6dbc 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -59,6 +59,9 @@ const char *get_machine_str(int mach) case IMAGE_FILE_MACHINE_CHPE_X86: return "CHPE-x86"; case IMAGE_FILE_MACHINE_ARM64EC: return "ARM64EC"; case IMAGE_FILE_MACHINE_ARM64X: return "ARM64X"; + case IMAGE_FILE_MACHINE_RISCV32: return "RISC-V 32-bit"; + case IMAGE_FILE_MACHINE_RISCV64: return "RISC-V 64-bit"; + case IMAGE_FILE_MACHINE_RISCV128: return "RISC-V 128-bit"; } return "???"; }