OSDN Git Service

hvf: arm: Add rudimentary PMC support
authorAlexander Graf <agraf@csgraf.de>
Thu, 16 Sep 2021 15:54:03 +0000 (17:54 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 21 Sep 2021 15:28:27 +0000 (16:28 +0100)
commitdd43ac07ef6bf2dbdfd2179f7fff95aa442c0ba1
treecb3c4b377a9ce544a8749f0e72d410fd51bf3c76
parent844a06bbe41d22b1ccd445e5351fb7429e49f0b7
hvf: arm: Add rudimentary PMC support

We can expose cycle counters on the PMU easily. To be as compatible as
possible, let's do so, but make sure we don't expose any other architectural
counters that we can not model yet.

This allows OSs to work that require PMU support.

Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20210916155404.86958-10-agraf@csgraf.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/hvf/hvf.c