Skip to content

Commit

Permalink
MIPS64: Fix pcall() error case.
Browse files Browse the repository at this point in the history
Thanks to Sergey Kaplun. #1308
  • Loading branch information
Mike Pall committed Nov 28, 2024
1 parent 4788e6f commit 35a4dd6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vm_mips64.dasc
Original file line number Diff line number Diff line change
Expand Up @@ -1420,9 1420,10 @@ static void build_subroutines(BuildCtx *ctx)
| sltu AT, TMP1, TMP2
| bnez AT, ->fff_fallback
|. lbu TMP3, DISPATCH_GL(hookmask)(DISPATCH)
| daddiu NARGS8:RC, NARGS8:RC, -8
| bltz NARGS8:RC, ->fff_fallback
| daddiu NARGS8:TMP0, NARGS8:RC, -8
| bltz NARGS8:TMP0, ->fff_fallback
|. move TMP2, BASE
| move NARGS8:RC, NARGS8:TMP0
| daddiu BASE, BASE, 16
| // Remember active hook before pcall.
| srl TMP3, TMP3, HOOK_ACTIVE_SHIFT
Expand Down

0 comments on commit 35a4dd6

Please sign in to comment.