RISC-V: Size CodeCache for short calls encoding

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 23
    • Affects Version/s: 23
    • Component/s: hotspot
    • b11
    • riscv

      The maximum reach for calls using auipc + jal, is PC +- (2GB-2k).
      auipc(bit 30-12) = PC + 0x7FFFF000 (bit 31 is sign bit)
      jalr (bit 10-0) = REG + 0x7FF (bit 11 is sign bit)

      The maximum CadeCache is 2GB, if we reduce a tiny bit for RV we are guaranteed the short encoding for all intra-calls.

            Assignee:
            Robbin Ehn
            Reporter:
            Robbin Ehn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: