mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-10 00:45:37 +00:00
CPU: improve cpu_thread::suspend_all for cache efficiency (TSX)
Add prefetch hint list parameter. Workloads may be executed by another thread on another CPU core. It means they may benefit from directly prefetching the data as hinted. Also implement mov_rdata_nt, for "streaming" data from such workloads.
This commit is contained in:
parent
e794109a67
commit
0da24f21d6
6 changed files with 132 additions and 32 deletions
|
|
@ -319,7 +319,7 @@ std::vector<u32> cheat_engine::search(const T value, const std::vector<u32>& to_
|
|||
if (Emu.IsStopped())
|
||||
return {};
|
||||
|
||||
cpu_thread::suspend_all(nullptr, [&]
|
||||
cpu_thread::suspend_all(nullptr, {}, [&]
|
||||
{
|
||||
if (!to_filter.empty())
|
||||
{
|
||||
|
|
@ -362,7 +362,7 @@ T cheat_engine::get_value(const u32 offset, bool& success)
|
|||
return 0;
|
||||
}
|
||||
|
||||
return cpu_thread::suspend_all(nullptr, [&]() -> T
|
||||
return cpu_thread::suspend_all(nullptr, {}, [&]() -> T
|
||||
{
|
||||
if (!vm::check_addr(offset, sizeof(T)))
|
||||
{
|
||||
|
|
@ -386,7 +386,7 @@ bool cheat_engine::set_value(const u32 offset, const T value)
|
|||
return false;
|
||||
}
|
||||
|
||||
return cpu_thread::suspend_all(nullptr, [&]
|
||||
return cpu_thread::suspend_all(nullptr, {}, [&]
|
||||
{
|
||||
if (!vm::check_addr(offset, sizeof(T)))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue