mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-03-05 13:45:36 +00:00
a64_emit_x64: Reduce patchpoint sizes
This commit is contained in:
parent
a59c335b05
commit
25e27282e3
1 changed files with 2 additions and 2 deletions
|
@ -1222,7 +1222,7 @@ void A64EmitX64::EmitPatchJg(const IR::LocationDescriptor& target_desc, CodePtr
|
||||||
code.mov(qword[r15 + offsetof(A64JitState, pc)], rax);
|
code.mov(qword[r15 + offsetof(A64JitState, pc)], rax);
|
||||||
code.jg(code.GetReturnFromRunCodeAddress());
|
code.jg(code.GetReturnFromRunCodeAddress());
|
||||||
}
|
}
|
||||||
code.EnsurePatchLocationSize(patch_location, 30); // TODO: Reduce size
|
code.EnsurePatchLocationSize(patch_location, 23);
|
||||||
}
|
}
|
||||||
|
|
||||||
void A64EmitX64::EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr) {
|
void A64EmitX64::EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr) {
|
||||||
|
@ -1234,7 +1234,7 @@ void A64EmitX64::EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr
|
||||||
code.mov(qword[r15 + offsetof(A64JitState, pc)], rax);
|
code.mov(qword[r15 + offsetof(A64JitState, pc)], rax);
|
||||||
code.jmp(code.GetReturnFromRunCodeAddress());
|
code.jmp(code.GetReturnFromRunCodeAddress());
|
||||||
}
|
}
|
||||||
code.EnsurePatchLocationSize(patch_location, 30); // TODO: Reduce size
|
code.EnsurePatchLocationSize(patch_location, 22);
|
||||||
}
|
}
|
||||||
|
|
||||||
void A64EmitX64::EmitPatchMovRcx(CodePtr target_code_ptr) {
|
void A64EmitX64::EmitPatchMovRcx(CodePtr target_code_ptr) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue