jitstate: Use std::array's fill() in ResetRSB

Performs the equivalent behavior
This commit is contained in:
Lioncash 2016-08-16 13:47:31 -04:00 committed by MerryMage
parent 74ee92ee38
commit cbd99e4367

View file

@ -15,9 +15,7 @@ namespace Dynarmic {
namespace BackendX64 { namespace BackendX64 {
void JitState::ResetRSB(const BlockOfCode* code) { void JitState::ResetRSB(const BlockOfCode* code) {
for (auto& value : rsb_codeptrs) { rsb_codeptrs.fill(reinterpret_cast<u64>(code->GetReturnFromRunCodeAddress()));
value = u64(code->GetReturnFromRunCodeAddress());
}
} }
/** /**