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
77035341
Commit
77035341
authored
19 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
Fix a few bugs in printing the pseudo-atomic notes in the
disassembler.
parent
6abdf188
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/ppc/insts.lisp
+12
-3
12 additions, 3 deletions
compiler/ppc/insts.lisp
with
12 additions
and
3 deletions
compiler/ppc/insts.lisp
+
12
−
3
View file @
77035341
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ppc/insts.lisp,v 1.1
1
2005/06/1
5
0
3:13:51
rtoy Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ppc/insts.lisp,v 1.1
2
2005/06/1
9
0
2:41:04
rtoy Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -208,11 +208,17 @@ about function addresses and register values.")
(
cond
((
and
(
=
d
4
)
(
=
rt
alloc-offset
)
(
not
*pseudo-atomic-set*
))
;; "ADD $ALLOC, $ALLOC, 4" sets the PA flag
;; "ADD
I
$ALLOC, $ALLOC, 4" sets the PA flag
(
disassem:note
"Set pseudo-atomic flag"
dstate
)
(
setf
*pseudo-atomic-set*
(
sys:sap+
(
disassem:dstate-segment-sap
dstate
)
(
disassem:dstate-cur-offs
dstate
))))
((
and
(
=
d
(
ldb
(
byte
16
0
)
-4
))
(
=
rt
alloc-offset
)
*pseudo-atomic-set*
)
;; "ADDI $ALLOC, $ALLOC, -4" resets the PA flag
(
disassem:note
"Reset pseudo-atomic flag"
dstate
)
(
setf
*pseudo-atomic-set*
nil
))
((
and
(
=
rt
alloc-offset
)
*pseudo-atomic-set*
(
not
(
sys:sap=
*pseudo-atomic-set*
...
...
@@ -230,6 +236,7 @@ about function addresses and register values.")
(
disassem:note
(
format
nil
"Header word ~A, size ~D?"
type
size
)
dstate
)))))))))
#+
nil
(
defun
handle-add-inst
(
reg
word
dstate
)
(
let
((
rt
(
ldb
(
byte
5
21
)
word
))
(
ra
(
ldb
(
byte
5
16
)
word
)))
...
...
@@ -272,10 +279,12 @@ about function addresses and register values.")
(
=
24
opcode
))
;; An ADDI or ORI instruction.
(
handle-addi-inst
reg
word
dstate
))
#+
nil
((
and
(
=
31
opcode
)
(
=
266
(
ldb
(
byte
9
1
)
word
)))
;; An ADD instruction
(
handle-add-inst
reg
word
dstate
)))
(
handle-add-inst
reg
word
dstate
))
)
(
update-addis-notes
word
)))
(
eval-when
(
:compile-toplevel
:load-toplevel
:execute
)
...
...
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