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

RISC-V: Clean up push and pop registers

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • 20
    • b15
    • riscv
    • linux

        Currently, riscv port has two implementations of `push_reg` and `pop_reg`.
        The bitset version can be replaced with the RegSet version for better readability.

        For example, if we want to push x10 and x11, pushing register with bitset would be like:
        ```
        push_reg(0xc00, sp)
        ```

        while pushing register with RegSet will be more clear:
        ```
        push_reg(RegSet::of(x10, x11), sp);
        ```

              fjiang Feilong Jiang
              fjiang Feilong Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: