Skip to content

Commit 9f71f45

Browse files
committed
update sysinfo_load
1 parent 7990a2d commit 9f71f45

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

panda/plugins/syscalls2/syscalls2.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -874,12 +874,13 @@ void sysinfo_load(int profile){
874874
#if defined(TARGET_I386) && !defined(TARGET_X86_64)
875875
arch = "x86";
876876
#elif defined(TARGET_X86_64)
877-
if (profile == PROFILE_LINUX_X64) {
877+
if (profile == PROFILE_WINDOWS_7_X64 || profile == PROFILE_LINUX_X64
878+
|| profile == PROFILE_FREEBSD_X64){
878879
arch = "x64";
879-
} else if (profile == PROFILE_FREEBSD_X64) {
880-
arch = "x64";
881-
}else{
882-
assert("invalid profile");
880+
} else if (profile == PROFILE_LINUX_X86 || profile == PROFILE_WINDOWS_2000_X86
881+
|| profile == PROFILE_WINDOWS_XPSP2_X86 || profile == PROFILE_WINDOWS_XPSP3_X86
882+
|| profile == PROFILE_WINDOWS_7_X86) {
883+
arch = "x86";
883884
}
884885
#elif defined(TARGET_ARM) &&!defined(TARGET_AARCH64)
885886
arch = "arm";

0 commit comments

Comments
 (0)