On Tue, 27 Feb 2024 at 15:55, Archith P <archith...@gmail.com> wrote:
> I am trying to run code on mps3-an547 (QEMU Emulator)
> and want to check if it has PMU (Performance Monitoring Unit)
> Enabled.

No, we don't emulate the PMU on M-profile CPUs.

> [I am getting PMU value from  ARM_PMU_Get_CCNTR() always zero]
>
> I tried using the QMP command query-cpu-model-expansion
> Is this a proper way to find out?
> {
>     "execute": "query-cpu-model-expansion",
>     "arguments": {
>         "type": "full",
>         "model": {
>             "name": "cortex-m55"
>         }
>     }
> }
> Gives:
> {"return": {"model": {"name": "cortex-m55"}}}

No, because we don't track individual processor features this way.

> Is there other way to find? Need Help.

In your guest, if you read the PMU_TYPE register that will tell
you whether the PMU is implemented (and more specifically, if
the CC bit is set then the cycle counter is implemented). For
QEMU it will read as zero.

-- PMM

Reply via email to