Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d734f369
Commit
d734f369
authored
Feb 10, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Fix exception remaining length calcs in VIS copy routines.
parent
6aedddb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
arch/sparc64/lib/VIScopy.S
arch/sparc64/lib/VIScopy.S
+11
-14
No files found.
arch/sparc64/lib/VIScopy.S
View file @
d734f369
...
@@ -120,7 +120,6 @@
...
@@ -120,7 +120,6 @@
#define EXVIS2(x,y) EXVISN(x,y,2)
#define EXVIS2(x,y) EXVISN(x,y,2)
#define EXVIS3(x,y) EXVISN(x,y,3)
#define EXVIS3(x,y) EXVISN(x,y,3)
#define EXVIS4(x,y) EXVISN(x,y,4)
#define EXVIS4(x,y) EXVISN(x,y,4)
#define EXVIS5(x,y) EXVISN(x,y,5)
#define FREG_FROB(f1, f2, f3, f4, f5, f6, f7, f8, f9) \
#define FREG_FROB(f1, f2, f3, f4, f5, f6, f7, f8, f9) \
faligndata
%f1
,
%f2
,
%f48
; \
faligndata
%f1
,
%f2
,
%f48
; \
...
@@ -135,7 +134,7 @@
...
@@ -135,7 +134,7 @@
#define MAIN_LOOP_CHUNK(src, dest, fdest, fsrc, len, jmptgt) \
#define MAIN_LOOP_CHUNK(src, dest, fdest, fsrc, len, jmptgt) \
EXVIS
(
LDBLK
[%
src
]
ASIBLK
,
%
fdest
)
; \
EXVIS
(
LDBLK
[%
src
]
ASIBLK
,
%
fdest
)
; \
ASI_SETDST_BLK
\
ASI_SETDST_BLK
\
EXVIS
2
(
STBLK
%
fsrc
,
[%
dest
]
ASIBLK
)
; \
EXVIS
(
STBLK
%
fsrc
,
[%
dest
]
ASIBLK
)
; \
add
%
src
,
0x40
,
%
src
; \
add
%
src
,
0x40
,
%
src
; \
subcc
%
len
,
0x40
,
%
len
; \
subcc
%
len
,
0x40
,
%
len
; \
be
,
pn
%
xcc
,
jmptgt
; \
be
,
pn
%
xcc
,
jmptgt
; \
...
@@ -156,14 +155,14 @@
...
@@ -156,14 +155,14 @@
#ifdef __KERNEL__
#ifdef __KERNEL__
#define STORE_JUMP(dest, fsrc, target) \
#define STORE_JUMP(dest, fsrc, target) \
srl
asi_dest
,
3
,
%
g5
; \
srl
asi_dest
,
3
,
%
g5
; \
EXVIS
3
(
STBLK
%
fsrc
,
[%
dest
]
ASIBLK
)
; \
EXVIS
2
(
STBLK
%
fsrc
,
[%
dest
]
ASIBLK
)
; \
xor
asi_dest
,
ASI_BLK_XOR1
,
asi_dest
;\
xor
asi_dest
,
ASI_BLK_XOR1
,
asi_dest
;\
add
%
dest
,
0x40
,
%
dest
; \
add
%
dest
,
0x40
,
%
dest
; \
xor
asi_dest
,
%
g5
,
asi_dest
; \
xor
asi_dest
,
%
g5
,
asi_dest
; \
ba
,
pt
%
xcc
,
target
;
ba
,
pt
%
xcc
,
target
;
#else
#else
#define STORE_JUMP(dest, fsrc, target) \
#define STORE_JUMP(dest, fsrc, target) \
EXVIS
3
(
STBLK
%
fsrc
,
[%
dest
]
ASIBLK
)
; \
EXVIS
2
(
STBLK
%
fsrc
,
[%
dest
]
ASIBLK
)
; \
add
%
dest
,
0x40
,
%
dest
; \
add
%
dest
,
0x40
,
%
dest
; \
ba
,
pt
%
xcc
,
target
;
ba
,
pt
%
xcc
,
target
;
#endif
#endif
...
@@ -182,7 +181,7 @@
...
@@ -182,7 +181,7 @@
subcc
%
left
,
8
,
%
left
; \
subcc
%
left
,
8
,
%
left
; \
bl
,
pn
%
xcc
,
vis_out
; \
bl
,
pn
%
xcc
,
vis_out
; \
faligndata
%f0
,
%f1
,
%f48
; \
faligndata
%f0
,
%f1
,
%f48
; \
EXVIS
4
(
STDF
%f48
,
[%
dest
]
ASINORMAL
)
; \
EXVIS
3
(
STDF
%f48
,
[%
dest
]
ASINORMAL
)
; \
add
%
dest
,
8
,
%
dest
;
add
%
dest
,
8
,
%
dest
;
#define UNEVEN_VISCHUNK_LAST(dest, f0, f1, left) \
#define UNEVEN_VISCHUNK_LAST(dest, f0, f1, left) \
...
@@ -675,21 +674,21 @@ vis_out_slk:
...
@@ -675,21 +674,21 @@ vis_out_slk:
xor
asi_src
,
%
g5
,
asi_src
!
IEU0
Group
xor
asi_src
,
%
g5
,
asi_src
!
IEU0
Group
#endif
#endif
vis_slk
:
ASI_SETSRC_NOBLK
!
LSU
Group
vis_slk
:
ASI_SETSRC_NOBLK
!
LSU
Group
EXVIS
4
(
LDDF
[%
o1
]
ASINORMAL
,
%f2
)
!
Load
Group
EXVIS
3
(
LDDF
[%
o1
]
ASINORMAL
,
%f2
)
!
Load
Group
add
%
o1
,
8
,
%
o1
!
IEU0
add
%
o1
,
8
,
%
o1
!
IEU0
subcc
%
g3
,
8
,
%
g3
!
IEU1
subcc
%
g3
,
8
,
%
g3
!
IEU1
ASI_SETDST_NOBLK
!
LSU
Group
ASI_SETDST_NOBLK
!
LSU
Group
faligndata
%f0
,
%f2
,
%f8
!
GRU
Group
faligndata
%f0
,
%f2
,
%f8
!
GRU
Group
EXVIS
5
(
STDF
%f8
,
[%
o0
]
ASINORMAL
)
!
Store
EXVIS
4
(
STDF
%f8
,
[%
o0
]
ASINORMAL
)
!
Store
bl
,
pn
%
xcc
,
vis_out_slp
!
CTI
bl
,
pn
%
xcc
,
vis_out_slp
!
CTI
add
%
o0
,
8
,
%
o0
!
IEU0
Group
add
%
o0
,
8
,
%
o0
!
IEU0
Group
ASI_SETSRC_NOBLK
!
LSU
Group
ASI_SETSRC_NOBLK
!
LSU
Group
EXVIS
4
(
LDDF
[%
o1
]
ASINORMAL
,
%f0
)
!
Load
Group
EXVIS
3
(
LDDF
[%
o1
]
ASINORMAL
,
%f0
)
!
Load
Group
add
%
o1
,
8
,
%
o1
!
IEU0
add
%
o1
,
8
,
%
o1
!
IEU0
subcc
%
g3
,
8
,
%
g3
!
IEU1
subcc
%
g3
,
8
,
%
g3
!
IEU1
ASI_SETDST_NOBLK
!
LSU
Group
ASI_SETDST_NOBLK
!
LSU
Group
faligndata
%f2
,
%f0
,
%f8
!
GRU
Group
faligndata
%f2
,
%f0
,
%f8
!
GRU
Group
EXVIS
5
(
STDF
%f8
,
[%
o0
]
ASINORMAL
)
!
Store
EXVIS
4
(
STDF
%f8
,
[%
o0
]
ASINORMAL
)
!
Store
bge
,
pt
%
xcc
,
vis_slk
!
CTI
bge
,
pt
%
xcc
,
vis_slk
!
CTI
add
%
o0
,
8
,
%
o0
!
IEU0
Group
add
%
o0
,
8
,
%
o0
!
IEU0
Group
vis_out_slp
:
vis_out_slp
:
...
@@ -1138,20 +1137,18 @@ VIScopyfixup4: mov (7 * 16), %g7
...
@@ -1138,20 +1137,18 @@ VIScopyfixup4: mov (7 * 16), %g7
sub
%
g7
,
%
g2
,
%
g7
sub
%
g7
,
%
g2
,
%
g7
ba
,
pt
%
xcc
,
VIScopyfixup_ret
ba
,
pt
%
xcc
,
VIScopyfixup_ret
add
%
g7
,
%
o2
,
%
o1
add
%
g7
,
%
o2
,
%
o1
VIScopyfixup_vis3
:
sub
%
o2
,
0x80
,
%
o2
VIScopyfixup_vis2
:
VIScopyfixup_vis2
:
add
%
o2
,
0x40
,
%
o2
sub
%
o2
,
0x40
,
%
o2
VIScopyfixup_vis0
:
VIScopyfixup_vis0
:
add
%
o2
,
0x80
,
%
o2
add
%
o2
,
0x80
,
%
o2
VIScopyfixup_vis1
:
VIScopyfixup_vis1
:
add
%
g7
,
%
g3
,
%
g7
add
%
g7
,
%
g3
,
%
g7
ba
,
pt
%
xcc
,
VIScopyfixup_ret
ba
,
pt
%
xcc
,
VIScopyfixup_ret
add
%
o2
,
%
g7
,
%
o1
add
%
o2
,
%
g7
,
%
o1
VIScopyfixup_vis5
:
add
%
g3
,
8
,
%
g3
VIScopyfixup_vis4
:
VIScopyfixup_vis4
:
add
%
g3
,
8
,
%
g3
add
%
g3
,
8
,
%
g3
VIScopyfixup_vis3
:
add
%
g3
,
8
,
%
g3
ba
,
pt
%
xcc
,
VIScopyfixup_ret
ba
,
pt
%
xcc
,
VIScopyfixup_ret
add
%
o2
,
%
g3
,
%
o1
add
%
o2
,
%
g3
,
%
o1
#endif
#endif
...
...
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