0.8.21.5:
[sbcl.git] / src / compiler / mips / insts.lisp
index a5c90ca..b19fc9b 100644 (file)
@@ -1,9 +1,18 @@
+;;; the instruction set definition for MIPS
+
+;;;; 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")
 
 (setf *assem-scheduler-p* t)
 (setf *assem-max-locations* 68)
-
-
 \f
 ;;;; Constants, types, conversion functions, some disassembler stuff.
 
@@ -71,9 +80,9 @@
                  dstate))))
 
 (defparameter float-reg-symbols
-  (coerce 
-   (loop for n from 0 to 31 collect (make-symbol (format nil "$F~d" n)))
-   'vector))
+  #.(coerce 
+     (loop for n from 0 to 31 collect (make-symbol (format nil "$F~d" n)))
+     'vector))
 
 (sb!disassem:define-arg-type fp-reg
   :printer #'(lambda (value stream dstate)
     (cond (length-only
            (values 0 (1+ length) nil nil))
           (t
-           (sb!kernel:copy-from-system-area sap (* n-byte-bits (1+ offset))
-                                         vector (* n-word-bits
-                                                   vector-data-offset)
-                                         (* length n-byte-bits))
+           (sb!kernel:copy-ub8-from-system-area sap (1+ offset)
+                                                vector 0 length)
            (collect ((sc-offsets)
                      (lengths))
              (lengths 1)                ; the length byte
              (let* ((index 0)
-                    (error-number (sb!c::read-var-integer vector index)))
+                    (error-number (sb!c:read-var-integer vector index)))
                (lengths index)
                (loop
                  (when (>= index length)
                    (return))
                  (let ((old-index index))
-                   (sc-offsets (sb!c::read-var-integer vector index))
+                   (sc-offsets (sb!c:read-var-integer vector index))
                    (lengths (- index old-index))))
                (values error-number
                        (1+ length)