aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/hipe/hipe_sparc.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-10-14 14:43:22 +0200
committerSverker Eriksson <[email protected]>2016-10-14 14:43:22 +0200
commit8bb80fe76f5b4debe981e42ba70260c5a12b250f (patch)
tree54994b20f2d65c04cee599f769e06abb33e289e5 /erts/emulator/hipe/hipe_sparc.c
parentdf9e09fc1f938f9902052dcb896b42558ee9779d (diff)
downloadotp-8bb80fe76f5b4debe981e42ba70260c5a12b250f.tar.gz
otp-8bb80fe76f5b4debe981e42ba70260c5a12b250f.tar.bz2
otp-8bb80fe76f5b4debe981e42ba70260c5a12b250f.zip
erts: Cleanup hipe trampoline code
Diffstat (limited to 'erts/emulator/hipe/hipe_sparc.c')
-rw-r--r--erts/emulator/hipe/hipe_sparc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/hipe/hipe_sparc.c b/erts/emulator/hipe/hipe_sparc.c
index 75bfb4fef1..876b20bb15 100644
--- a/erts/emulator/hipe/hipe_sparc.c
+++ b/erts/emulator/hipe/hipe_sparc.c
@@ -87,8 +87,8 @@ int hipe_patch_call(void *callAddress, void *destAddress, void *trampoline)
{
Uint32 relDest, newI;
- if (trampoline)
- return -1;
+ ASSERT(trampoline == NULL);
+
relDest = (Uint32)((Sint32)destAddress - (Sint32)callAddress);
newI = (1 << 30) | (relDest >> 2);
*(Uint32*)callAddress = newI;