Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
bdc87462
Commit
bdc87462
authored
Oct 20, 1993
by
Torbjorn Granlund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(cacheflush): Split into dcacheflush and icacheflush.
Rewrite to use space regs correctly. From-SVN: r5837
parent
13b457e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
gcc/config/pa/pa.md
+15
-3
No files found.
gcc/config/pa/pa.md
View file @
bdc87462
...
@@ -3362,10 +3362,22 @@
...
@@ -3362,10 +3362,22 @@
;; This is used by the trampoline code for nested functions.
;; This is used by the trampoline code for nested functions.
;; So long as the trampoline itself is less than 32 bytes this
;; So long as the trampoline itself is less than 32 bytes this
;; is sufficient.
;; is sufficient.
(define_insn "cacheflush"
(define_insn "dcacheflush"
[
(unspec_volatile [(const_int 1)
]
0)
[
(unspec_volatile [(const_int 1)
]
0)
(use (mem:SI (match_operand:SI 0 "register_operand" "r")))
(use (mem:SI (match_operand:SI 0 "register_operand" "r")))
(use (mem:SI (match_operand:SI 1 "register_operand" "r")))]
(use (mem:SI (match_operand:SI 1 "register_operand" "r")))]
""
""
"fdc 0(0,%0)
\;
sync
\;
fic 0(0,%0)
\;
sync
\;
fdc 0(0,%1)
\;
sync
\;
fic 0(0,%1)
\;
sync
\;
nop
\;
nop
\;
nop
\;
nop
\;
nop
\;
nop
\;
nop"
"fdc 0(0,%0)
\;
fdc 0(0,%1)
\;
sync"
[
(set_attr "length" "60")
]
)
[
(set_attr "length" "12")
]
)
(define_insn "icacheflush"
[
(unspec_volatile [(const_int 2)
]
0)
(use (mem:SI (match_operand:SI 0 "register_operand" "r")))
(use (mem:SI (match_operand:SI 1 "register_operand" "r")))
(use (match_operand:SI 2 "register_operand" "r"))
(clobber (match_operand:SI 3 "register_operand" "=&r"))
(clobber (match_operand:SI 4 "register_operand" "=&r"))]
""
"mfsp %%sr0,%4
\;
ldsid (0,%2),%3
\;
mtsp %3,%%sr0
\;
fic 0(%%sr0,%0)
\;
fic 0(%%sr0,%1)
\;
sync
\;
mtsp %4,%%sr0
\;
nop
\;
nop
\;
nop
\;
nop
\;
nop
\;
nop"
[
(set_attr "length" "52")
]
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment