Skip to content

RV64 QEMU-Virt Initialization Issue #463

@PeterWrighten

Description

@PeterWrighten

Currently, I finished RV64 PageTable and try runing it on QEMU, but there is an initialization issue which is not easy to observe until I finished RV32 PageTable. In comparison with it, I found that it is weird when I ran make qemu-riscv64 and it had no performance which seems not caused by RELEASE=1 compilation.

timeout 10s qemu-system-riscv64 -machine virt -bios none -kernel awkernel_rv64.bin -m 1G
      -nographic -smp 4
  ⎿  Error: qemu-system-riscv64: terminating on signal 15 from pid 87052 (<unknown process>)

     failed to allocate heap memory
     aborting...

I suspect this issue is related to SV39's heap size(512GiB) is so much larger than qemu's address space limit, and we should change something to ensure it can run on QEMU.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions