Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8186723

Add SuperH as new architecture for linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b22
    • CPU:
      generic

      Description

      In order to be able to build linux-zero on SuperH (both big- and little-endian), it needs to be added to arch_array in src/os/linux/vm/os_linux.cpp:

      diff -r 9ad65a522a1f src/os/linux/vm/os_linux.cpp
      --- a/src/os/linux/vm/os_linux.cpp Wed Aug 23 11:14:40 2017 +0200
      +++ b/src/os/linux/vm/os_linux.cpp Thu Aug 24 10:32:31 2017 +0200
      @@ -1748,8 +1748,10 @@
           {EM_PPC, EM_PPC, ELFCLASS32, ELFDATA2MSB, (char*)"Power PC 32"},
       #if defined(VM_LITTLE_ENDIAN)
           {EM_PPC64, EM_PPC64, ELFCLASS64, ELFDATA2LSB, (char*)"Power PC 64 LE"},
      + {EM_SH, EM_SH, ELFCLASS32, ELFDATA2LSB, (char*)"SuperH"},
       #else
           {EM_PPC64, EM_PPC64, ELFCLASS64, ELFDATA2MSB, (char*)"Power PC 64"},
      + {EM_SH, EM_SH, ELFCLASS32, ELFDATA2MSB, (char*)"SuperH BE"},
       #endif
           {EM_ARM, EM_ARM, ELFCLASS32, ELFDATA2LSB, (char*)"ARM"},
           {EM_S390, EM_S390, ELFCLASSNONE, ELFDATA2MSB, (char*)"IBM System/390"},
      @@ -1791,9 +1793,11 @@
         static Elf32_Half running_arch_code=EM_MIPS;
       #elif (defined M68K)
         static Elf32_Half running_arch_code=EM_68K;
      +#elif (defined SH)
      + static Elf32_Half running_arch_code=EM_SH;
       #else
           #error Method os::dll_load requires that one of following is defined:\
      - AARCH64, ALPHA, ARM, AMD64, IA32, IA64, M68K, MIPS, MIPSEL, PARISC, __powerpc__, __powerpc64__, S390, __sparc
      + AARCH64, ALPHA, ARM, AMD64, IA32, IA64, M68K, MIPS, MIPSEL, PARISC, __powerpc__, __powerpc64__, S390, SH, __sparc
       #endif
       
         // Identify compatability class for VM's architecture and library's architecture

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: