Re: [RFC PATCH 06/16] target/riscv: Add hard-coded CPU state of WG extension

2024-07-11 Thread Alistair Francis
On Wed, Jun 12, 2024 at 6:17 PM Jim Shu wrote: > > Add hard-coded state of WG extension. 'mwid' is the M-mode WID of CPU. > 'mwidlist' is the list of allowed WID value of 'mlwid' CSR. > > These CPU states can be set by CPU option, or can be set by machine code > via newly added APIs. If we want di

[RFC PATCH 06/16] target/riscv: Add hard-coded CPU state of WG extension

2024-06-12 Thread Jim Shu
Add hard-coded state of WG extension. 'mwid' is the M-mode WID of CPU. 'mwidlist' is the list of allowed WID value of 'mlwid' CSR. These CPU states can be set by CPU option, or can be set by machine code via newly added APIs. If we want different WG configs of CPUs, we should set it by machine cod