mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-02-18 22:42:58 +00:00
dynarmic: Remove poison_memory ClearCache parameter (#1)
Unused since the switch to Xbyak
This commit is contained in:
@@ -18,10 +18,10 @@ namespace Dynarmic {
|
||||
namespace BackendX64 {
|
||||
|
||||
BlockOfCode::BlockOfCode(UserCallbacks cb) : Xbyak::CodeGenerator(128 * 1024 * 1024), cb(cb) {
|
||||
ClearCache(false);
|
||||
ClearCache();
|
||||
}
|
||||
|
||||
void BlockOfCode::ClearCache(bool poison_memory) {
|
||||
void BlockOfCode::ClearCache() {
|
||||
consts.~Consts();
|
||||
new (&consts) Consts();
|
||||
reset();
|
||||
|
||||
@@ -21,7 +21,7 @@ public:
|
||||
explicit BlockOfCode(UserCallbacks cb);
|
||||
|
||||
/// Clears this block of code and resets code pointer to beginning.
|
||||
void ClearCache(bool poison_memory);
|
||||
void ClearCache();
|
||||
|
||||
/// Runs emulated code for approximately `cycles_to_run` cycles.
|
||||
size_t RunCode(JitState* jit_state, CodePtr basic_block, size_t cycles_to_run) const;
|
||||
|
||||
@@ -123,9 +123,9 @@ size_t Jit::Run(size_t cycle_count) {
|
||||
return cycles_executed;
|
||||
}
|
||||
|
||||
void Jit::ClearCache(bool poison_memory) {
|
||||
void Jit::ClearCache() {
|
||||
ASSERT(!is_executing);
|
||||
impl->block_of_code.ClearCache(poison_memory);
|
||||
impl->block_of_code.ClearCache();
|
||||
impl->emitter.ClearCache();
|
||||
impl->jit_state.ResetRSB();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user