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)
Tue, Jul 22, 10:52 AM
Unknown Object (File)
Jun 23 2025, 8:16 PM
Unknown Object (File)
Jun 22 2025, 9:12 AM
Unknown Object (File)
Jun 21 2025, 10:20 AM
Unknown Object (File)
Jun 17 2025, 9:57 PM
Unknown Object (File)
Jun 16 2025, 5:38 PM
Unknown Object (File)
Jun 16 2025, 1:37 AM
Unknown Object (File)
Jun 15 2025, 7: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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added a subscriber: markj.
markj added inline comments.
sys/riscv/riscv/identcpu.c
145 ↗(On Diff #63663)

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.