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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • 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

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

              Created:
              Updated:
              Resolved: