agent/src/share/classes/sun/jvm/hotspot/utilities/PlatformInfo.java

Print this page
rev 9708 : 8073139: PPC64: User-visible arch directory and os.arch value on ppc64le cause issues with Java tooling
Summary: Set LIBARCH to ppc64le, make SA and hsdis work, have os.arch return ppc64le on PowerPC64 LE
Reviewed-by: david.holmes@oracle.com, magnus.ihse.bursie@oracle.com
Contributed-by: Andrew Hughes gnu.andrew@redhat.com, Alexander Smundak asmundak@google.com

*** 52,62 **** } } public static boolean knownCPU(String cpu) { final String[] KNOWN = ! new String[] {"i386", "x86", "x86_64", "amd64", "sparc", "sparcv9", "ppc64", "aarch64"}; for(String s : KNOWN) { if(s.equals(cpu)) return true; } --- 52,62 ---- } } public static boolean knownCPU(String cpu) { final String[] KNOWN = ! new String[] {"i386", "x86", "x86_64", "amd64", "sparc", "sparcv9", "ppc64", "ppc64le", "aarch64"}; for(String s : KNOWN) { if(s.equals(cpu)) return true; }
*** 96,105 **** --- 96,108 ---- return "sparc"; if (cpu.equals("x86_64")) return "amd64"; + if (cpu.equals("ppc64le")) + return "ppc64"; + return cpu; } // this main is invoked from Makefile to make platform specific agent Makefile(s).