~openjdk/openjdk/openjdk7

« back to all changes in this revision

Viewing changes to patches/zero-sparc.diff

  • Committer: Matthias Klose
  • Date: 2017-08-23 15:57:01 UTC
  • Revision ID: doko@ubuntu.com-20170823155701-t1c08fbzkt3isvf1
 - 7u151-2.6.11 upload

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
     if (t->base() == Type::Long && OptoReg::is_reg(regnum)) {
38
38
       // For SPARC we have to swap high and low words for
39
39
       // long values stored in a single-register (g0-g7).
40
 
Index: openjdk/hotspot/src/share/vm/opto/chaitin.hpp
41
 
===================================================================
42
 
--- openjdk/hotspot/src/share/vm/opto/chaitin.hpp
43
 
+++ openjdk/hotspot/src/share/vm/opto/chaitin.hpp
44
 
@@ -293,7 +293,7 @@ public:
45
 
 // TEMPORARILY REPLACED WITH COMMAND LINE FLAG
46
 
 
47
 
 //// !!!!! Magic Constants need to move into ad file
48
 
-#ifdef SPARC
49
 
+#if defined(SPARC) && !defined(ZERO)
50
 
 //#define FLOAT_PRESSURE 30  /*     SFLT_REG_mask.Size() - 1 */
51
 
 //#define INT_PRESSURE   23  /* NOTEMP_I_REG_mask.Size() - 1 */
52
 
 #define FLOAT_INCREMENT(regs) regs
 
40
## JDK-8011621 removed this part and while it was applied to 2.6.10
 
41
## it was backed out on OpenJDK (see backport JDK-8160961) for
 
42
## unknown reasons; keeping it in case IcedTea backs it out as well
 
43
#Index: openjdk/hotspot/src/share/vm/opto/chaitin.hpp
 
44
#===================================================================
 
45
#--- openjdk/hotspot/src/share/vm/opto/chaitin.hpp
 
46
#+++ openjdk/hotspot/src/share/vm/opto/chaitin.hpp
 
47
#@@ -293,7 +293,7 @@ public:
 
48
# // TEMPORARILY REPLACED WITH COMMAND LINE FLAG
 
49
 
50
# //// !!!!! Magic Constants need to move into ad file
 
51
#-#ifdef SPARC
 
52
#+#if defined(SPARC) && !defined(ZERO)
 
53
# //#define FLOAT_PRESSURE 30  /*     SFLT_REG_mask.Size() - 1 */
 
54
# //#define INT_PRESSURE   23  /* NOTEMP_I_REG_mask.Size() - 1 */
 
55
# #define FLOAT_INCREMENT(regs) regs
53
56
Index: openjdk/hotspot/src/share/vm/opto/chaitin.cpp
54
57
===================================================================
55
58
--- openjdk/hotspot/src/share/vm/opto/chaitin.cpp