Skip to content

target/riscv: Add Sscpuutil (CPU Utilization) extension emulation#13

Open
Estherrzhang wants to merge 1 commit into
XUANTIE-RV:xuantie-qemu-9.0from
Estherrzhang:sscpuutil-pr
Open

target/riscv: Add Sscpuutil (CPU Utilization) extension emulation#13
Estherrzhang wants to merge 1 commit into
XUANTIE-RV:xuantie-qemu-9.0from
Estherrzhang:sscpuutil-pr

Conversation

@Estherrzhang

Copy link
Copy Markdown

Add emulation for the RISC-V Sscpuutil extension which provides CPU utilization counters: corecyc (0xc30) counts core cycles at actual frequency, acttime (0xc31) counts active time at a fixed reference rate.

Includes M-mode variants (mcorecyc/macttime at 0xb30/0xb31), access control CSRs (mcpuutilen/scpuutilen/hcpuutilen), and the full privilege access control chain (M->S, S->U, H->VS).

Also adds clock-frequency DT property to virt machine CPU nodes for kernel FIE (Frequency Invariance Engine) support.

Add emulation for the RISC-V Sscpuutil extension which provides CPU
utilization counters: corecyc (0xc30) counts core cycles at actual
frequency, acttime (0xc31) counts active time at a fixed reference rate.

Includes M-mode variants (mcorecyc/macttime at 0xb30/0xb31), access
control CSRs (mcpuutilen/scpuutilen/hcpuutilen), and the full privilege
access control chain (M->S, S->U, H->VS).

Also adds clock-frequency DT property to virt machine CPU nodes for
kernel FIE (Frequency Invariance Engine) support.

Signed-off-by: Esther Z <zhangfengxue.zfx@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant