Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] More accurate CPU detection on RISC-V #1519

Closed
xiaoran007 opened this issue Jan 22, 2025 · 2 comments
Closed

[FEAT] More accurate CPU detection on RISC-V #1519

xiaoran007 opened this issue Jan 22, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@xiaoran007
Copy link
Contributor

Description

The current CPU detection on RISCV actually outputs the microarchitecture (extended instructions) of the CPU, rather than the intuitive CPU model NAME. Most of the RISCV chips (with Linux support) today are SOCs, very similar to ARM chips, maybe using the SOC name as the CPU name is more intuitive way.

Motivation

Adding support for RISCV might be worthwhile.

Additional context

Here is an example. The module is Milkv-duoS, which has a SG2000 (cv181x) SOC (1 RISC-V core). Current output is:

CPU: rv64gvcsu

It seems to be possible to get the series name of the SOC from the device tree (/sys/firmware/devicetree/base/compatible):

cvitek,cv181x

This is similar to most ARM devices.

@xiaoran007 xiaoran007 added the enhancement New feature or request label Jan 22, 2025
@CarterLi
Copy link
Member

Please try the dev build

@CarterLi CarterLi reopened this Jan 22, 2025
@xiaoran007
Copy link
Contributor Author

Yeah, the dev version looks good🤔

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants