Skip to content

Commit

Permalink
Fix stack-based arguments for mips64.
Browse files Browse the repository at this point in the history
  • Loading branch information
yugr committed Mar 20, 2024
1 parent 48779bb commit ce9558f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion arch/mips64/table.S.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022-2023 Yury Gribov
* Copyright 2022-2024 Yury Gribov
*
* The MIT License (MIT)
*
Expand Down Expand Up @@ -52,6 +52,10 @@ _${lib_suffix}_save_regs_and_resolve:
PUSH_REG($$a1)
PUSH_REG($$a2)
PUSH_REG($$a3)
PUSH_REG($$a4)
PUSH_REG($$a5)
PUSH_REG($$a6)
PUSH_REG($$a7)

PUSH_FREG($$f12, 44)
PUSH_FREG($$f13, 45)
Expand All @@ -74,6 +78,10 @@ _${lib_suffix}_save_regs_and_resolve:
POP_FREG($$f13, 45)
POP_FREG($$f12, 44)

POP_REG($$a7)
POP_REG($$a6)
POP_REG($$a5)
POP_REG($$a4)
POP_REG($$a3)
POP_REG($$a2)
POP_REG($$a1)
Expand Down
2 changes: 1 addition & 1 deletion scripts/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ tests/multiple-dlopens-3/run.sh $ARCH
if ! echo "$ARCH" | grep -q powerpc; then
tests/many-functions/run.sh $ARCH
fi
if ! echo "$ARCH" | grep -q 'mips64\|powerpc64-'; then
if ! echo "$ARCH" | grep -q 'powerpc64-'; then
# FIXME: enable for all platforms !
tests/stack-args/run.sh $ARCH
fi

0 comments on commit ce9558f

Please sign in to comment.