commit | 597a2ce4c1a8eb1bad4a995a056a12061aae99e9 | [log] [tgz] |
---|---|---|
author | Giacomo Travaglini <giacomo.travaglini@arm.com> | Mon Sep 26 14:39:08 2022 +0100 |
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | Tue Oct 04 09:45:20 2022 +0000 |
tree | 25bfb1eaedeb9b971c675e2e311fda5c9d8a8c11 | |
parent | 317bfd62bd89b3f7fe7f48ac80534a2f722f9cd3 [diff] |
arch-arm: Add ArmRelease factory function to be used in KVM mode From gem5 v22.0, EL2 and EL3 are automatically implemented in the default release object [1]. This means any FS simulation will start at EL3, which is the highest implemented EL. Unfortunately this doesn't work in KVM mode, which is assuming a VM does not start at EL3: As soon as updateKvmState is called [2] gem5 tries to set the VM PSTATE to EL3 and KVM fails the ioctl PSTATE write [1]: https://gem5-review.googlesource.com/c/public/gem5/+/51011 [2]: https://github.com/gem5/gem5/blob/v22.0.0.2/\ src/arch/arm/kvm/armv8_cpu.cc#L237 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Change-Id: Icf951bcfb47e0c2ff9abe64b1b9006934303ad48 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/64072 Tested-by: kokoro <noreply+kokoro@google.com>