RISC-V: Fix argument passing for the RiscvFlushIcache::flush

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 27
    • Component/s: hotspot
    • None
    • riscv
    • linux

      On behalf of : https://github.com/ikarostsin

      Based on the implementation of RiscvFlushIcache::flush, the second parameter should be the end address rather than the size of the memory region.

      ```
      void RiscvFlushIcache::flush(uintptr_t start, uintptr_t end) {
        long ret = sys_flush_icache(start, end, SYS_RISCV_FLUSH_ICACHE_ALL);
        guarantee_with_errno(ret == 0, "riscv_flush_icache failed");
      ```

            Assignee:
            Unassigned
            Reporter:
            Fei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: