Merge pull request #3 from jrtc27/a32-apple-silicon

Fix A32-on-A64 for Apple Silicon
This commit is contained in:
SachinVin 2021-07-10 09:38:20 +05:30 committed by GitHub
commit 71e3553d78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1584,6 +1584,9 @@ void A32EmitA64::EmitPatchMovX0(CodePtr target_code_ptr) {
void A32EmitA64::Unpatch(const IR::LocationDescriptor& location) {
EmitA64::Unpatch(location);
if (config.enable_fast_dispatch) {
code.DisableWriting();
SCOPE_EXIT { code.EnableWriting(); };
(*fast_dispatch_table_lookup)(location.Value()) = {};
}
}