From b2426aa7337c9eae7a325e39e381aaf704294d8e Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Thu, 8 Sep 2005 08:04:48 +0000 Subject: [PATCH] Fix mips debug print argument handling. --- src/compiler/mips/show.lisp | 24 +++++++++++++++++------- version.lisp-expr | 2 +- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/compiler/mips/show.lisp b/src/compiler/mips/show.lisp index d20f42e..c5ac7f8 100644 --- a/src/compiler/mips/show.lisp +++ b/src/compiler/mips/show.lisp @@ -1,24 +1,34 @@ +;;;; temporary printing utilities and similar noise + +;;;; This software is part of the SBCL system. See the README file for +;;;; more information. +;;;; +;;;; This software is derived from the CMU CL system, which was +;;;; written at Carnegie Mellon University and released into the +;;;; public domain. The software is in the public domain and is +;;;; provided with absolutely no warranty. See the COPYING and CREDITS +;;;; files for more information. + (in-package "SB!VM") (define-vop (print) - (:args (object :scs (descriptor-reg) :target a0)) + (:args (object :scs (descriptor-reg any-reg) :target nl0)) (:results (result :scs (descriptor-reg))) (:save-p t) - (:temporary (:sc any-reg :offset cfunc-offset :target result :to (:result 0)) - cfunc) - (:temporary (:sc descriptor-reg :offset 4 :from (:argument 0)) a0) + (:temporary (:sc any-reg :offset nl0-offset :from (:argument 0)) nl0) + (:temporary (:sc any-reg :offset cfunc-offset) cfunc) (:temporary (:sc control-stack :offset nfp-save-offset) nfp-save) (:vop-var vop) - (:generator 0 + (:generator 100 (let ((cur-nfp (current-nfp-tn vop))) - (move a0 object) (when cur-nfp (store-stack-tn nfp-save cur-nfp)) + (move nl0 object) (inst li cfunc (make-fixup "debug_print" :foreign)) (inst jal (make-fixup "call_into_c" :foreign)) (inst addu nsp-tn nsp-tn -16) (inst addu nsp-tn nsp-tn 16) (when cur-nfp (load-stack-tn cur-nfp nfp-save)) - (move result cfunc)))) + (move result nl0)))) diff --git a/version.lisp-expr b/version.lisp-expr index 081174c..4151d0b 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"0.9.4.47" +"0.9.4.48" -- 1.7.10.4