[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 10/13] target/riscv: Enable sscofpmf for bare cpu by defau
|
From: |
Alistair Francis |
|
Subject: |
Re: [PATCH v2 10/13] target/riscv: Enable sscofpmf for bare cpu by default |
|
Date: |
Tue, 6 Aug 2024 11:51:20 +1000 |
On Wed, Jul 24, 2024 at 9:33 AM Atish Patra <atishp@rivosinc.com> wrote:
>
> Sscofpmf has been supported on virt machine for a long time. It is
> required to enable profiling on virt machines. Let's enable it
> by default for ease of usage.
>
> Signed-off-by: Atish Patra <atishp@rivosinc.com>
> ---
> target/riscv/cpu.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
> index 1731dc461376..393d1d67120e 100644
> --- a/target/riscv/cpu.c
> +++ b/target/riscv/cpu.c
> @@ -494,6 +494,7 @@ static void rv64_base_cpu_init(Object *obj)
> env->priv_ver = PRIV_VERSION_LATEST;
> #ifndef CONFIG_USER_ONLY
> set_satp_mode_max_supported(RISCV_CPU(obj), VM_1_10_SV57);
> + cpu->cfg.ext_sscofpmf = true;
Unfortunately we don't want to do this, the base CPU should be bare
bones and then users can enable extensions.
Alistair
> #endif
> }
>
>
> --
> 2.34.1
>
>
- Re: [PATCH v2 10/13] target/riscv: Enable sscofpmf for bare cpu by default,
Alistair Francis <=