Skip to content

Commit

Permalink
update sysinfo_load
Browse files Browse the repository at this point in the history
  • Loading branch information
lacraig2 committed Oct 22, 2024
1 parent 7990a2d commit 9f71f45
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions panda/plugins/syscalls2/syscalls2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,12 +874,13 @@ void sysinfo_load(int profile){
#if defined(TARGET_I386) && !defined(TARGET_X86_64)
arch = "x86";
#elif defined(TARGET_X86_64)
if (profile == PROFILE_LINUX_X64) {
if (profile == PROFILE_WINDOWS_7_X64 || profile == PROFILE_LINUX_X64
|| profile == PROFILE_FREEBSD_X64){
arch = "x64";
} else if (profile == PROFILE_FREEBSD_X64) {
arch = "x64";
}else{
assert("invalid profile");
} else if (profile == PROFILE_LINUX_X86 || profile == PROFILE_WINDOWS_2000_X86
|| profile == PROFILE_WINDOWS_XPSP2_X86 || profile == PROFILE_WINDOWS_XPSP3_X86
|| profile == PROFILE_WINDOWS_7_X86) {
arch = "x86";
}
#elif defined(TARGET_ARM) &&!defined(TARGET_AARCH64)
arch = "arm";
Expand Down

0 comments on commit 9f71f45

Please sign in to comment.