RISC-V: Use auipc explicitly in far_jump and far_call macro assembler routines

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 24
    • Component/s: hotspot
    • b14
    • riscv
    • linux

      Previous discussion: https://github.com/openjdk/jdk/pull/18942#issuecomment-2109162337

      For MacroAssembler::far_call and MacroAssembler::far_jump, I would suggest we use explicit
      auipc instead of MacroAssembler::la for them as the destination is ensured to be in code cache.
      This will help save unnecessary check in MacroAssembler::la and make the code more consistent.
      Also this will help distinguish these two macro assembler routines from MacroAssembler::rt_call

            Assignee:
            Fei Yang
            Reporter:
            Fei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: