-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
I am currently working on a project where we are using xed to decode x86 binaries.
Now we are trying to expand our support to RISC-V (as host architecture).
But we noticed that xed is not able to be built on RISC-V, because normalize_cpu_name does not understand riscv64.
Simply adding another branch for "riscv64" here fixes it according to my testing:
Lines 1218 to 1240 in 75cb46e
| def _normalize_cpu_name(self, name): | |
| """Internal function. Standardize various CPU identifiers""" | |
| if name in ['ia32', 'i386', 'i686','x86']: | |
| return 'ia32' | |
| elif name in ['ia32e', 'x86_64', 'amd64', | |
| 'x86-64', 'Intel64','intel64']: | |
| return 'x86-64' | |
| elif name == 'ia64': | |
| return 'ipf' | |
| elif name[0:5] == 'EM64T': | |
| return 'x86-64' | |
| elif name[0:7] == 'Intel64': | |
| return 'x86-64' | |
| elif name == 'intel64': | |
| return 'x86-64' | |
| elif name[0:5] == 'AMD64': | |
| return 'x86-64' | |
| elif name[0:3] == 'x86': | |
| return 'ia32' | |
| elif name in ['aarch64', 'arm64']: | |
| return 'aarch64' | |
| else: | |
| die("Unknown cpu " + name) |
Metadata
Metadata
Assignees
Labels
No labels