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

RISC-V: Clean up push and pop registers

    XMLWordPrintable

Details

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

    Backports

      Description

        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);
        ```

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: