Page MenuHomeFreeBSD

RISC-V: skip cpu-map when parsing elf_hwcap
ClosedPublic

Authored by mhorne on Oct 25 2019, 12:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 28 2026, 8:43 AM
Unknown Object (File)
Apr 27 2026, 11:56 AM
Unknown Object (File)
Apr 27 2026, 8:13 AM
Unknown Object (File)
Apr 27 2026, 5:00 AM
Unknown Object (File)
Apr 26 2026, 6:14 AM
Unknown Object (File)
Apr 24 2026, 6:09 PM
Unknown Object (File)
Apr 23 2026, 2:12 AM
Unknown Object (File)
Apr 22 2026, 11:47 PM
Subscribers

Details

Summary

The fill_elf_hwcap() function expects to find only cpu nodes under the
/cpus entry of the device tree. Newer versions of QEMU insert a cpu-map
node which describes the CPU topology, breaking this function. To fix
this, simply skip any non-cpu entries.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27217
Build 25481: arc lint + arc unit

Event Timeline

markj added a subscriber: markj.
markj added inline comments.
sys/riscv/riscv/identcpu.c
145

The comment should end with a period.

This revision is now accepted and ready to land.Oct 25 2019, 2:15 PM
This revision was automatically updated to reflect the committed changes.