a64_emit_x64: Make constness of loop elements explicit within GenFastmemFallbacks()
This commit is contained in:
parent
7752ffc50c
commit
93351c7efb
1 changed files with 2 additions and 2 deletions
|
@ -255,7 +255,7 @@ void A64EmitX64::GenFastmemFallbacks() {
|
|||
continue;
|
||||
}
|
||||
|
||||
for (auto& [bitsize, callback] : read_callbacks) {
|
||||
for (const auto& [bitsize, callback] : read_callbacks) {
|
||||
code.align();
|
||||
read_fallbacks[std::make_tuple(bitsize, vaddr_idx, value_idx)] = code.getCurr<void(*)()>();
|
||||
ABI_PushCallerSaveRegistersAndAdjustStackExcept(code, HostLocRegIdx(value_idx));
|
||||
|
@ -271,7 +271,7 @@ void A64EmitX64::GenFastmemFallbacks() {
|
|||
PerfMapRegister(read_fallbacks[std::make_tuple(bitsize, vaddr_idx, value_idx)], code.getCurr(), fmt::format("a64_read_fallback_{}", bitsize));
|
||||
}
|
||||
|
||||
for (auto& [bitsize, callback] : write_callbacks) {
|
||||
for (const auto& [bitsize, callback] : write_callbacks) {
|
||||
code.align();
|
||||
write_fallbacks[std::make_tuple(bitsize, vaddr_idx, value_idx)] = code.getCurr<void(*)()>();
|
||||
ABI_PushCallerSaveRegistersAndAdjustStack(code);
|
||||
|
|
Loading…
Reference in a new issue