qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] target/arm: Allow aarch64=off for TCG
@ 2025-10-02 10:16 Peter Maydell
  2025-10-02 10:16 ` [RFC PATCH 1/2] target/arm: Clear AArch64 ID regs from ARMISARegisters if AArch64 disabled Peter Maydell
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Peter Maydell @ 2025-10-02 10:16 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: Clément Chigot

This patchset relaxes our current constraint that we only permit
-cpu foo,aarch64=off on KVM CPUs, so that you can also use this
to run a TCG CPU with aarch64 disabled. This is useful because
currently if you want a 32-bit TCG CPU you're limited to either
'max' in qemu-system-arm or else the old v7-only CPUs like a15.

I had a look at this last year, but never actually got the changes
into a completed state before I moved onto other things. Clément
asked about this the other day, so I figured I'd send out the
patches I had.

The series is RFC because:
 * I haven't tested it enough; in particular I don't think
   I checked that the "clear the AArch64 ID register values"
   patch doesn't break KVM aarch64=off (including not breaking
   migration). If it does we might have to make the "clear regs"
   only be done for TCG, but that seems a bit hacky...
 * I haven't checked that we forbid weird property combos like
   '-cpu max,aarch64=off,sve=on'

But I did do the work of looking through the codebase at where
we test ARM_FEATURE_AARCH64 to confirm that it really is the
right thing to test and we weren't using it any places where we
should instead have been checking ARM_FEATURE_V8 or something
else instead.

thanks
-- PMM

Peter Maydell (2):
  target/arm: Clear AArch64 ID regs from ARMISARegisters if AArch64
    disabled
  target/arm: Allow 'aarch64=off' to be set for TCG CPUs

 docs/system/arm/cpu-features.rst |  7 ++--
 target/arm/cpu-features.h        |  5 +++
 target/arm/cpu.h                 |  3 +-
 target/arm/cpu.c                 | 61 +++++++++++++++++++++++++++++---
 tests/qtest/arm-cpu-features.c   |  8 ++---
 5 files changed, 70 insertions(+), 14 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-15 21:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-02 10:16 [RFC PATCH 0/2] target/arm: Allow aarch64=off for TCG Peter Maydell
2025-10-02 10:16 ` [RFC PATCH 1/2] target/arm: Clear AArch64 ID regs from ARMISARegisters if AArch64 disabled Peter Maydell
2025-10-10 15:44   ` Peter Maydell
2025-10-02 10:16 ` [RFC PATCH 2/2] target/arm: Allow 'aarch64=off' to be set for TCG CPUs Peter Maydell
2025-10-03  9:28 ` [RFC PATCH 0/2] target/arm: Allow aarch64=off for TCG Clément Chigot
2025-10-15 21:46 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).