summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/gl_SPARC_asm.py
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2004-05-25 16:51:56 +0000
committerIan Romanick <idr@us.ibm.com>2004-05-25 16:51:56 +0000
commita1cafadb260f1407af715653fa1b7f0727c6c2e3 (patch)
tree06cf366688f3d51b9f63e2692d23cbcffc2f773d /src/mesa/glapi/gl_SPARC_asm.py
parent680d390550ab4f4e62e3253256bc21c9a7d5b98d (diff)
Modify the generate assembly code to not use global registers %g2,
%g3, %g6, or %g7. This should eliminate the warnings about global registers used without a ".register" directive.
Diffstat (limited to 'src/mesa/glapi/gl_SPARC_asm.py')
-rw-r--r--src/mesa/glapi/gl_SPARC_asm.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mesa/glapi/gl_SPARC_asm.py b/src/mesa/glapi/gl_SPARC_asm.py
index c895329492..4fdb82df64 100644
--- a/src/mesa/glapi/gl_SPARC_asm.py
+++ b/src/mesa/glapi/gl_SPARC_asm.py
@@ -51,24 +51,24 @@ class PrintGenericStubs(gl_XML.FilterGLAPISpecBase):
print '#if defined(__sparc_v9__) && !defined(__linux__)'
print '# define GL_STUB(fn,off)\t\t\t\t\\'
print 'GLOBL_FN(fn) ; fn:\t\t\t\t\t\\'
- print '\tsethi\t%hi(0x00000000), %g2 ;\t\t\t\\'
+ print '\tsethi\t%hi(0x00000000), %g4 ;\t\t\t\\'
print '\tsethi\t%hi(0x00000000), %g1 ;\t\t\t\\'
- print '\tor\t%g2, %lo(0x00000000), %g2 ;\t\t\\'
+ print '\tor\t%g4, %lo(0x00000000), %g4 ;\t\t\\'
print '\tor\t%g1, %lo(0x00000000), %g1 ;\t\t\\'
- print '\tsllx\t%g2, 32, %g2 ;\t\t\t\t\\'
- print '\tldx\t[%g1 + %g2], %g1 ;\t\t\t\\'
- print '\tsethi\t%hi(8 * off), %g2 ;\t\t\t\\'
- print '\tor\t%g2, %lo(8 * off), %g2 ;\t\t\\'
- print '\tldx\t[%g1 + %g2], %g3 ;\t\t\t\\'
- print '\tjmpl\t%g3, %g0 ;\t\t\t\t\\'
+ print '\tsllx\t%g4, 32, %g4 ;\t\t\t\t\\'
+ print '\tldx\t[%g1 + %g4], %g1 ;\t\t\t\\'
+ print '\tsethi\t%hi(8 * off), %g4 ;\t\t\t\\'
+ print '\tor\t%g4, %lo(8 * off), %g4 ;\t\t\\'
+ print '\tldx\t[%g1 + %g4], %g5 ;\t\t\t\\'
+ print '\tjmpl\t%g5, %g0 ;\t\t\t\t\\'
print '\tnop'
print '#else'
print '# define GL_STUB(fn,off)\t\t\t\t\\'
print 'GLOBL_FN(fn) ; fn:\t\t\t\t\t\\'
print '\tsethi\t%hi(0x00000000), %g1 ;\t\t\t\\'
print '\tld\t[%g1 + %lo(0x00000000)], %g1 ;\t\t\\'
- print '\tld\t[%g1 + (4 * off)], %g3 ;\t\t\\'
- print '\tjmpl\t%g3, %g0 ;\t\t\t\t\\'
+ print '\tld\t[%g1 + (4 * off)], %g5 ;\t\t\\'
+ print '\tjmpl\t%g5, %g0 ;\t\t\t\t\\'
print '\tnop'
print '#endif'
print ''