From 9f71f45664bb910178a4de13ab85eae1cc2fb56c Mon Sep 17 00:00:00 2001 From: Luke Craig Date: Mon, 21 Oct 2024 16:30:37 -0400 Subject: [PATCH] update sysinfo_load --- panda/plugins/syscalls2/syscalls2.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/panda/plugins/syscalls2/syscalls2.cpp b/panda/plugins/syscalls2/syscalls2.cpp index 3a8fe588d53..6a110d152a9 100644 --- a/panda/plugins/syscalls2/syscalls2.cpp +++ b/panda/plugins/syscalls2/syscalls2.cpp @@ -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";