Skip to content

Commit

Permalink
[LoongArch64] Fixed the exception's dispatch by EPC. (dotnet#69712) (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
shushanhf authored May 26, 2022
1 parent 595f7ed commit 74aa24c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/vm/loongarch64/stubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ AdjustContextForVirtualStub(

if (sk == VirtualCallStubManager::SK_DISPATCH)
{
if (*PTR_DWORD(f_IP) != DISPATCH_STUB_FIRST_DWORD)
if (*PTR_DWORD(f_IP - 4) != DISPATCH_STUB_FIRST_DWORD)
{
_ASSERTE(!"AV in DispatchStub at unknown instruction");
return FALSE;
Expand Down

0 comments on commit 74aa24c

Please sign in to comment.