dynarmic: Remove poison_memory ClearCache parameter (#1)

Unused since the switch to Xbyak
This commit is contained in:
Mat M 2016-09-01 04:47:09 -04:00 committed by Merry
parent 7e3c981974
commit fb6d838bd9
4 changed files with 6 additions and 7 deletions

View file

@ -35,9 +35,8 @@ public:
/**
* Clears the code cache of all compiled code.
* Cannot be called from a callback.
* @param poison_memory If true, poisons memory to crash if any stray code pointers are called.
*/
void ClearCache(bool poison_memory = true);
void ClearCache();
/**
* Reset CPU state to state at startup. Does not clear code cache.

View file

@ -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();

View file

@ -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;

View file

@ -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();
}