diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-07-02 08:01:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-07-02 08:01:06 +0100 |
commit | 5c5e9714c851027611cb726a76ebb8be6d48cbdc (patch) | |
tree | 3128d1c5b5258c431e64b60e62ba67f9c701c89d /games-emulation/pcsx2/files | |
parent | d1c14e94a73fba924761cdad7298f3e48c6bc160 (diff) |
gentoo auto-resync : 02:07:2024 - 08:01:06
Diffstat (limited to 'games-emulation/pcsx2/files')
-rw-r--r-- | games-emulation/pcsx2/files/pcsx2-1.7.5913-musl-cache.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games-emulation/pcsx2/files/pcsx2-1.7.5913-musl-cache.patch b/games-emulation/pcsx2/files/pcsx2-1.7.5913-musl-cache.patch new file mode 100644 index 000000000000..3383904fee48 --- /dev/null +++ b/games-emulation/pcsx2/files/pcsx2-1.7.5913-musl-cache.patch @@ -0,0 +1,20 @@ +Patch adapted from [1]: + + musl doesn't expose these sysconf values, so just use the loop + below that reads them out of sysfs coherency_line_size only + +[1] https://github.com/chimera-linux/cports/blob/114b576aee3ebc25b48ac120da1a1093dcc4365f/user/pcsx2/patches/cache.patch +--- a/common/Linux/LnxHostSys.cpp ++++ b/common/Linux/LnxHostSys.cpp +@@ -143,7 +143,11 @@ + size_t HostSys::GetRuntimeCacheLineSize() + { ++ #if defined(__GLIBC__) + int l1i = sysconf(_SC_LEVEL1_DCACHE_LINESIZE); + int l1d = sysconf(_SC_LEVEL1_ICACHE_LINESIZE); + int res = (l1i > l1d) ? l1i : l1d; ++ #else ++ int res = 0; ++ #endif + for (int index = 0; index < 16; index++) + { |