X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fx86%2Ftarget-insts.lisp;h=c021af1b2ec44e42e3263654abc66ee6e0eaff5f;hb=a4c3562138e342465826de31fb8c324ae8a4b594;hp=1b25231b0e4df1c64b0440eb0f44c31672d77909;hpb=a530bbe337109d898d5b4a001fc8f1afa3b5dc39;p=sbcl.git diff --git a/src/compiler/x86/target-insts.lisp b/src/compiler/x86/target-insts.lisp index 1b25231..c021af1 100644 --- a/src/compiler/x86/target-insts.lisp +++ b/src/compiler/x86/target-insts.lisp @@ -1,4 +1,8 @@ ;;;; target-only stuff from CMU CL's src/compiler/x86/insts.lisp +;;;; +;;;; i.e. stuff which was in CMU CL's insts.lisp file, but which in +;;;; the SBCL build process can't be compiled into code for the +;;;; cross-compilation host ;;;; This software is part of the SBCL system. See the README file for ;;;; more information. @@ -11,9 +15,6 @@ (in-package "SB!VM") -(file-comment - "$Header$") - (defun print-mem-access (value stream print-size-p dstate) (declare (type list value) (type stream stream) @@ -46,6 +47,13 @@ (unless (or firstp (minusp offset)) (write-char #\+ stream)) (if firstp - (sb!disassem:princ16 offset stream) - (princ offset stream)))))) + (progn + (sb!disassem:princ16 offset stream) + (or (minusp offset) + (nth-value 1 + (sb!disassem::note-code-constant-absolute offset dstate)) + (sb!disassem:maybe-note-assembler-routine offset + nil + dstate))) + (princ offset stream)))))) (write-char #\] stream))