From f924d8bbcb7087e3c68cb9f34ed0ab046220c402 Mon Sep 17 00:00:00 2001 From: wlott <wlott> Date: Mon, 24 Sep 1990 00:32:20 +0000 Subject: [PATCH] Fixed the calculation of the offset between a function pointer and the raw instruction address in set-symbol-function. --- compiler/mips/cell.lisp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/mips/cell.lisp b/compiler/mips/cell.lisp index 9740a239b..fd31e164a 100644 --- a/compiler/mips/cell.lisp +++ b/compiler/mips/cell.lisp @@ -7,7 +7,7 @@ ;;; Scott Fahlman (FAHLMAN@CMUC). ;;; ********************************************************************** ;;; -;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/cell.lisp,v 1.43 1990/09/21 05:46:57 wlott Exp $ +;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/cell.lisp,v 1.44 1990/09/24 00:32:20 wlott Exp $ ;;; ;;; This file contains the VM definition of various primitive memory access ;;; VOPs for the MIPS. @@ -198,7 +198,8 @@ (inst xor type (logxor vm:closure-header-type vm:function-header-type)) (inst beq type zero-tn normal-fn) (inst addu temp function - (- vm:function-header-code-offset vm:function-pointer-type)) + (- (ash vm:function-header-code-offset vm:word-shift) + vm:function-pointer-type)) (error-call vop kernel:object-not-function-error function) (emit-label closure) (inst li temp (make-fixup "closure_tramp" :foreign)) -- GitLab