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

RISC-V: Add Zfh probe code

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • hotspot
    • b07
    • riscv

      JDK-8318227 use Zfh extension, but related Zfh probe code is removed from the patch due to related patch is not pushed into kernel yet.
      so Zfh probe code should be added later.


      diff --git a/src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp b/src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp
      index b5f17810323..243c4b850ee 100644
      --- a/src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp
      +++ b/src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp
      @@ -49,7 +49,6 @@
       #define RISCV_HWPROBE_EXT_ZBA (1 << 3)
       #define RISCV_HWPROBE_EXT_ZBB (1 << 4)
       #define RISCV_HWPROBE_EXT_ZBS (1 << 5)
      -#define RISCV_HWPROBE_EXT_ZFH (1 << 27)
       
       #define RISCV_HWPROBE_KEY_CPUPERF_0 5
       #define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0)
      @@ -146,9 +145,6 @@ void RiscvHwprobe::add_features_from_query_result() {
         if (is_set(RISCV_HWPROBE_KEY_IMA_EXT_0, RISCV_HWPROBE_EXT_ZBS)) {
           VM_Version::ext_Zbs.enable_feature();
         }
      - if (is_set(RISCV_HWPROBE_KEY_IMA_EXT_0, RISCV_HWPROBE_EXT_ZFH)) {
      - VM_Version::ext_Zfh.enable_feature();
      - }
         if (is_valid(RISCV_HWPROBE_KEY_CPUPERF_0)) {
           VM_Version::unaligned_access.enable_feature(
              query[RISCV_HWPROBE_KEY_CPUPERF_0].value & RISCV_HWPROBE_MISALIGNED_MASK);

            mli Hamlin Li
            mli Hamlin Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: