Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
7e8e844c
Commit
7e8e844c
authored
32 years ago
by
hallgren
Browse files
Options
Downloads
Patches
Plain Diff
Added patches from Miles for an aligment problem and lra and function
header problems.
parent
910f273a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/disassem.lisp
+26
-10
26 additions, 10 deletions
compiler/disassem.lisp
with
26 additions
and
10 deletions
compiler/disassem.lisp
+
26
−
10
View file @
7e8e844c
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/disassem.lisp,v 1.1
3
1992/
09/08 16:27:00
hallgren Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/disassem.lisp,v 1.1
4
1992/
10/16 15:07:28
hallgren Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -2084,7 +2084,9 @@
(
ignore
chunk
)
(
type
(
or
null
stream
)
stream
)
(
type
disassem-state
dstate
))
(
when
(
and
(
aligned-p
(
dstate-cur-offs
dstate
)
(
*
2
vm:word-bytes
))
(
when
(
and
(
aligned-p
(
+
(
seg-virtual-location
(
dstate-segment
dstate
))
(
dstate-cur-offs
dstate
))
(
*
2
vm:word-bytes
))
;; check type
(
=
(
system:sap-ref-8
(
dstate-segment-sap
dstate
)
(
if
(
eq
(
dstate-byte-order
dstate
)
...
...
@@ -2132,14 +2134,17 @@
(
ignore
chunk
)
(
type
(
or
null
stream
)
stream
)
(
type
disassem-state
dstate
))
(
let
((
offs
(
dstate-cur-offs
dstate
))
(
let
((
location
(
+
(
seg-virtual-location
(
dstate-segment
dstate
))
(
dstate-cur-offs
dstate
)))
(
alignment
(
dstate-alignment
dstate
)))
(
unless
(
aligned-p
offs
alignment
)
(
unless
(
aligned-p
location
alignment
)
(
when
stream
(
format
stream
"~a~vt~d~%"
'.align
(
dstate-argument-column
dstate
)
alignment
))
(
setf
(
dstate-next-offs
dstate
)
(
align
offs
alignment
)))
(
incf
(
dstate-next-offs
dstate
)
(
-
(
align
location
alignment
)
location
)))
nil
))
(
defun
rewind-current-segment
(
dstate
segment
)
...
...
@@ -2462,12 +2467,23 @@
(
type
disassem-state
dstate
))
(
format
stream
"~a~vt"
'WORD
(
dstate-argument-column
dstate
))
(
let
((
sap
(
dstate-segment-sap
dstate
))
(
start-offs
(
dstate-cur-offs
dstate
)))
(
dotimes
(
offs
num
)
(
unless
(
zerop
offs
)
(
start-offs
(
dstate-cur-offs
dstate
))
(
byte-order
(
dstate-byte-order
dstate
)))
(
dotimes
(
word-offs
num
)
(
unless
(
zerop
word-offs
)
(
write-string
", "
stream
))
(
format
stream
"#x~8,'0x"
(
system:sap-ref-32
sap
(
+
offs
start-offs
))))))
(
let
((
word
0
)
(
bit-shift
0
))
(
dotimes
(
byte-offs
vm:word-bytes
)
(
let
((
byte
(
system:sap-ref-8
sap
(
+
start-offs
(
*
word-offs
vm:word-bytes
)
byte-offs
))))
(
setf
word
(
if
(
eq
byte-order
:big-endian
)
(
+
(
ash
word
vm:byte-bits
)
byte
)
(
+
word
(
ash
byte
bit-shift
))))
(
incf
bit-shift
vm:byte-bits
)))
(
format
stream
"#x~v,'0x"
(
ash
vm:word-bits
-2
)
word
)))))
;;; ----------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment