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

RISC-V: check vector support in VM_Version::os_aux_features

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • hotspot

      Previously, VM_Version::os_aux_features skips vector check, even if it knows vector is supported via HWCAP, because it can not tell if the rvv0.7 or rvv1.0 is supported.
      But this brings another issue in some situation where borad itself supports rvv1.0, but kernel does not support hw probe, then jdk can not enable UseRVV, but it should be.
      The solution is to delete the skipping rvv check code, and does not care about if it supports 0.7 or 1.0. The result is, when rvv 1.0 is supported then user can get the feature from jdk; when rvv 0.7 is supported then user needs to pass "-XX:-UseRVV" to disable it explicitly.
      Although the solution is not perfect, but it support both situations anyway.

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

              Created:
              Updated:
              Resolved: