Identifier strings for PowerPC 64 LE and PowerPC 64 are swapped

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 10
    • Component/s: hotspot
    • None
    • b22
    • ppc

      While working on hotspot/src/os/linux/vm/os_linux.cpp to add new architectures for Zero, I noticed that the identifier strings for PowerPC 64 and PowerPC 64 LE are swapped:

      #if defined(VM_LITTLE_ENDIAN)
          {EM_PPC64, EM_PPC64, ELFCLASS64, ELFDATA2LSB, (char*)"Power PC 64"},
      #else
          {EM_PPC64, EM_PPC64, ELFCLASS64, ELFDATA2MSB, (char*)"Power PC 64 LE"},
      #endif

      The upper entry should have the string "PowerPC 64 LE" and the lower one "PowerPC 64", not vice versa.

            Assignee:
            John Paul Adrian Glaubitz
            Reporter:
            John Paul Adrian Glaubitz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: