Browse Source

fix crashes on rw

lizzie/dynarmic-shared-labels-better
lizzie 6 days ago
parent
commit
4f336a971e
  1. 2
      src/dynarmic/src/dynarmic/backend/x64/a32_emit_x64.cpp
  2. 2
      src/dynarmic/src/dynarmic/backend/x64/a64_emit_x64.cpp

2
src/dynarmic/src/dynarmic/backend/x64/a32_emit_x64.cpp

@ -115,7 +115,7 @@ A32EmitX64::BlockDescriptor A32EmitX64::Emit(IR::Block& block) {
// up to 2 labels per insn // up to 2 labels per insn
if (auto const inst_count = block.instructions.size(); inst_count > shared_labels.capacity()) if (auto const inst_count = block.instructions.size(); inst_count > shared_labels.capacity())
shared_labels.reserve(inst_count * 8);
shared_labels.reserve(inst_count * 16);
A32EmitContext ctx{conf, reg_alloc, block, shared_labels}; A32EmitContext ctx{conf, reg_alloc, block, shared_labels};
// Start emitting. // Start emitting.

2
src/dynarmic/src/dynarmic/backend/x64/a64_emit_x64.cpp

@ -89,7 +89,7 @@ A64EmitX64::BlockDescriptor A64EmitX64::Emit(IR::Block& block) noexcept {
// up to 2 labels per insn // up to 2 labels per insn
if (auto const inst_count = block.instructions.size(); inst_count > shared_labels.capacity()) if (auto const inst_count = block.instructions.size(); inst_count > shared_labels.capacity())
shared_labels.reserve(inst_count * 8);
shared_labels.reserve(inst_count * 16);
A64EmitContext ctx{conf, reg_alloc, block, shared_labels}; A64EmitContext ctx{conf, reg_alloc, block, shared_labels};
// Start emitting. // Start emitting.

Loading…
Cancel
Save