Mercurial > hg > truffle
comparison src/cpu/sparc/vm/vm_version_sparc.cpp @ 10997:46c544b8fbfc
8008407: remove SPARC V8 support
Summary: Removed most of the SPARC V8 instructions
Reviewed-by: kvn, twisti
author | morris |
---|---|
date | Fri, 07 Jun 2013 16:46:37 -0700 |
parents | 4a916f2ce331 |
children | eae426d683f6 |
comparison
equal
deleted
inserted
replaced
10996:ea60d1de6735 | 10997:46c544b8fbfc |
---|---|
73 if (AllocatePrefetchStyle == 3 && !has_blk_init()) { | 73 if (AllocatePrefetchStyle == 3 && !has_blk_init()) { |
74 warning("BIS instructions are not available on this CPU"); | 74 warning("BIS instructions are not available on this CPU"); |
75 FLAG_SET_DEFAULT(AllocatePrefetchStyle, 1); | 75 FLAG_SET_DEFAULT(AllocatePrefetchStyle, 1); |
76 } | 76 } |
77 | 77 |
78 if (has_v9()) { | 78 guarantee(VM_Version::has_v9(), "only SPARC v9 is supported"); |
79 assert(ArraycopySrcPrefetchDistance < 4096, "invalid value"); | 79 |
80 if (ArraycopySrcPrefetchDistance >= 4096) | 80 assert(ArraycopySrcPrefetchDistance < 4096, "invalid value"); |
81 ArraycopySrcPrefetchDistance = 4064; | 81 if (ArraycopySrcPrefetchDistance >= 4096) |
82 assert(ArraycopyDstPrefetchDistance < 4096, "invalid value"); | 82 ArraycopySrcPrefetchDistance = 4064; |
83 if (ArraycopyDstPrefetchDistance >= 4096) | 83 assert(ArraycopyDstPrefetchDistance < 4096, "invalid value"); |
84 ArraycopyDstPrefetchDistance = 4064; | 84 if (ArraycopyDstPrefetchDistance >= 4096) |
85 } else { | 85 ArraycopyDstPrefetchDistance = 4064; |
86 if (ArraycopySrcPrefetchDistance > 0) { | |
87 warning("prefetch instructions are not available on this CPU"); | |
88 FLAG_SET_DEFAULT(ArraycopySrcPrefetchDistance, 0); | |
89 } | |
90 if (ArraycopyDstPrefetchDistance > 0) { | |
91 warning("prefetch instructions are not available on this CPU"); | |
92 FLAG_SET_DEFAULT(ArraycopyDstPrefetchDistance, 0); | |
93 } | |
94 } | |
95 | 86 |
96 UseSSE = 0; // Only on x86 and x64 | 87 UseSSE = 0; // Only on x86 and x64 |
97 | 88 |
98 _supports_cx8 = has_v9(); | 89 _supports_cx8 = has_v9(); |
99 _supports_atomic_getset4 = true; // swap instruction | 90 _supports_atomic_getset4 = true; // swap instruction |