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

RISC-V: Size CodeCache for short calls encoding

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved: