Megamouse
|
e940632d93
|
Fix Nan in cpu_stats::get_usage
And apply same logic to linux and windows
|
2021-02-25 13:08:27 +03:00 |
|
Nekotekina
|
cd01a1eb09
|
Move CPUStats.h -> util/cpu_stats.cpp
|
2021-02-23 18:24:50 +03:00 |
|
Nekotekina
|
ad1027455a
|
Fix minor inconsistency in utils::memory_reset (Linux)
|
2021-02-22 13:00:01 +03:00 |
|
Nekotekina
|
9dc238187f
|
Simplify utils::align() a bit
std::is_unsigned implies std::is_integral I believe.
|
2021-02-22 13:00:01 +03:00 |
|
Eladash
|
b86ec2ffcf
|
Fix potential overflows in utils::aligned_div, utils::rounded_div
|
2021-02-19 16:10:03 +03:00 |
|
Nekotekina
|
e76d8eb046
|
Fix -Wstring-aliasing (gcc)
|
2021-02-18 19:38:22 +03:00 |
|
Nekotekina
|
038148bf06
|
Fix almost all GCC warnings
|
2021-02-17 22:59:04 +03:00 |
|
Nekotekina
|
8e6e57de86
|
Enable -Wunused-function warning
|
2021-02-15 14:39:53 +03:00 |
|
Nekotekina
|
4f8cac731b
|
Fix SAFE_BUFFERS attribute for GCC
|
2021-02-09 12:33:50 +03:00 |
|
Eladash
|
d3bc96a201
|
Fix minor issue with usage of STL thread::hardware_concurrency()
|
2021-01-29 18:23:29 +03:00 |
|
Nekotekina
|
67dd6754a6
|
Seal cereal includes in util/cereal.cpp
|
2021-01-28 10:48:53 +03:00 |
|
Nekotekina
|
ee288340b0
|
Implement thread_ctrl::scoped_priority
RAII priority control (+1, or -1)
|
2021-01-25 21:49:16 +03:00 |
|
Nekotekina
|
caa83d20f7
|
vm_native.cpp: implement shm::try_map
Treats addr as a hint, emulating windows behaviour.
|
2021-01-25 16:55:19 +03:00 |
|
kd-11
|
ead180aa60
|
win32: Be a bit more optimistic with allocated ranges; we get contiguous ranges more often than not
|
2021-01-24 14:24:55 +03:00 |
|
Nekotekina
|
0ac68def49
|
vm_native.cpp: minor compilation fix
|
2021-01-17 15:14:11 +03:00 |
|
Nekotekina
|
4ed76a15ff
|
Use different approach in shm::unmap_critical (Linux)
For now, set protection to PROT_NONE.
Attempt to address #9609
|
2021-01-15 20:11:09 +03:00 |
|
Nekotekina
|
b5837d1271
|
Memory: use MADV_DONTDUMP if available (Linux)
Also refactor other madvise() usage
|
2021-01-15 19:54:41 +03:00 |
|
Nekotekina
|
ea916fd7e1
|
Memory: fix critical bug in shm::unmap_critical (Linux)
It was leaving holes in reserved areas.
Windows is unaffected.
|
2021-01-14 18:04:29 +03:00 |
|
Eladash
|
923fcc3b3d
|
utils::shm: Hotfix after #9578
|
2021-01-12 23:57:36 +03:00 |
|
Eladash
|
c50b9bc4b4
|
utils::shm: Make map_self() atomic (#9578)
|
2021-01-12 19:53:18 +03:00 |
|
Nekotekina
|
db8e6fe7a7
|
Enable -Wunused-variable
|
2021-01-12 14:34:14 +03:00 |
|
Nekotekina
|
673e84920b
|
fixed_typemap.hpp: remove useless reporters
|
2021-01-05 16:16:01 +03:00 |
|
kd-11
|
cbe0000d23
|
Improved Zen chip detection
|
2021-01-03 19:31:18 +03:00 |
|
Nekotekina
|
8a5620592b
|
Implement util/fifo_mutex.hpp
Prototype. Uses 2 bytes.
Added minor fix to slow_mutex.hpp as well.
|
2020-12-31 20:07:50 +03:00 |
|
Nekotekina
|
35322b5d14
|
Remove deprecated _bit accessor from v128
Complicated (a lot of code), confusing (ambiguous)
|
2020-12-29 21:04:28 +03:00 |
|
Nekotekina
|
6b96807112
|
Reimplement utils::popcnt64
Implement utils::popcnt128
|
2020-12-29 15:28:02 +03:00 |
|
JohnHolmesII
|
02b684b810
|
Warnings: Warnings use kebab case, Mr. Kot
|
2020-12-29 14:17:34 +03:00 |
|
Nekotekina
|
e3dec420a2
|
vm_native.cpp: conditionally define c_madv_free
|
2020-12-27 12:19:50 +03:00 |
|
Nekotekina
|
1e32311a65
|
Use MAP_NORESERVE when available in mmap (Linux)
Used in: memory_reserve, memory_decommit (vm_native.cpp)
|
2020-12-27 10:20:42 +03:00 |
|
Marin Baron
|
92e5bb88e8
|
Remove std typeinfo
|
2020-12-27 00:30:16 +03:00 |
|
Nekotekina
|
567d23d856
|
Implement util/auto_typemap.hpp
Used in vm::block_t as an example.
|
2020-12-24 14:55:25 +03:00 |
|
Nekotekina
|
a8e0d261b7
|
types.hpp: more cleanup
Also fix compilation.
|
2020-12-22 19:08:09 +03:00 |
|
Nekotekina
|
43a58df8a0
|
Butcher narrow cast a little (don't print value).
Also remove some forward declarations from util/types.hpp
If they don't work properly, it's easier to remove them.
|
2020-12-22 14:32:30 +03:00 |
|
Nekotekina
|
b7bf316c1a
|
Don't randomly include "stdafx.h"
It's file for precompiled headers.
Include what is used, don't rely on transitive includes.
|
2020-12-22 14:32:30 +03:00 |
|
Jan Beich
|
96bde3df81
|
atomic.hpp: revert Clang < 11 workaround for u128
|
2020-12-22 09:00:34 +03:00 |
|
Nekotekina
|
bd269bccaf
|
types.hpp: remove intrinsic includes
Replace v128 with u128 in some places.
Removed some unused files.
|
2020-12-21 21:11:25 +03:00 |
|
Nekotekina
|
5f618814f6
|
atomic.hpp: use u128 as storage for masks/values
|
2020-12-21 13:51:23 +03:00 |
|
Nekotekina
|
eec11bfba9
|
Move align helpers to util/asm.hpp
Also add some files:
GLTextureCache.cpp
VKTextureCache.cpp
|
2020-12-18 18:07:42 +03:00 |
|
Nekotekina
|
db9b7db531
|
Cleanup and move sysinfo.h -> util/sysinfo.hpp
|
2020-12-18 12:55:54 +03:00 |
|
Nekotekina
|
05099e2ae1
|
Replace uint64_t with u64
|
2020-12-18 12:23:53 +03:00 |
|
Nekotekina
|
fb29933d3d
|
Add usz alias for std::size_t
|
2020-12-18 12:23:53 +03:00 |
|
Nekotekina
|
360c4d1554
|
Simplify f16 type
|
2020-12-18 12:23:53 +03:00 |
|
Nekotekina
|
4cfa9b11f3
|
Move busy_wait() to asm.hpp
|
2020-12-18 12:23:53 +03:00 |
|
Nekotekina
|
c16fb61bea
|
fixed_typemap.hpp: Fix assignment operator for g_ptr
Maybe RPCS3 hangs will finally be gone.
|
2020-12-17 16:47:25 +03:00 |
|
Nekotekina
|
ca5f0444bf
|
shared_ptr.hpp: add wait support for atomic_ptr<>
As well as default mask and value transformation function overload.
|
2020-12-15 12:52:21 +03:00 |
|
Nekotekina
|
4a883ba6ea
|
atomic.hpp: use SFINAE for waitable atomic detection
Add default_mask<> variable.
Refactor get_value<>().
|
2020-12-15 12:50:44 +03:00 |
|
Nekotekina
|
e321765c54
|
Split BEType.h to util/v128.hpp and util/to_endian.hpp
|
2020-12-13 16:34:45 +03:00 |
|
Nekotekina
|
09d293592e
|
shared_ptr.hpp: fix is_same_ptr<>() trait
Implemented as constexpr function.
|
2020-12-13 15:39:36 +03:00 |
|
Nekotekina
|
a6a5292cd7
|
Use uptr (std::uintptr_t alias)
|
2020-12-12 16:29:55 +03:00 |
|
Nekotekina
|
b59f142d4e
|
Move types.h to util/types.hpp
|
2020-12-12 15:12:01 +03:00 |
|