Raymond Toy pushed to branch sparc64-dev at cmucl / cmucl
Commits:
-
47d140f4
by Raymond Toy at 2018-01-03T10:53:22-08:00
1 changed file:
Changes:
... | ... | @@ -133,8 +133,10 @@ |
133 | 133 |
(defmacro lisp-return (return-pc &key (offset 0) (frob-code t))
|
134 | 134 |
"Return to RETURN-PC."
|
135 | 135 |
`(progn
|
136 |
+ ;; 8 to skip over the lra object, and 4*offset to get to the
|
|
137 |
+ ;; right instruction since each instruction is 4 bytes long.
|
|
136 | 138 |
(inst j ,return-pc
|
137 |
- (- (* (1+ ,offset) word-bytes) other-pointer-type))
|
|
139 |
+ (- (+ 8 (* ,offset 4)) other-pointer-type))
|
|
138 | 140 |
,(if frob-code
|
139 | 141 |
`(move code-tn ,return-pc)
|
140 | 142 |
'(inst nop))))
|