qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/4] Basic ASID2 support
@ 2025-12-10 14:50 Jim MacArthur
  2025-12-10 14:50 ` [PATCH v6 1/4] target/arm: Enable ID_AA64MMFR4_EL1 register Jim MacArthur
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Jim MacArthur @ 2025-12-10 14:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Jim MacArthur, Richard Henderson, Alex Bennée,
	Gustavo Romero

Enable the ID_AA64MMFR4_EL1 register, add the ASID2 field for cpu_max,
then enable writes to FNG1, FNG0, and A2 bits of TCR2_EL1. Any change
of ASID still causes a TLB flush.

Changes since V5:

- Patch 2:
  - More specific TLB flush. Now only flushes the TLBs relevant to the
    written register, and then only if A2 changes.

Thanks to Richard Henderson for advice on TLB flushing.

Signed-off-by: Jim MacArthur <jim.macarthur@linaro.org>
---
Jim MacArthur (4):
      target/arm: Enable ID_AA64MMFR4_EL1 register
      target/arm: Allow writes to FNG1, FNG0, A2
      target/arm/tcg/cpu64.c: Enable ASID2 for cpu_max
      tests: Add test for ASID2 and write/read of feature bits

 docs/system/arm/emulation.rst    |  1 +
 target/arm/cpu-features.h        |  7 ++++
 target/arm/cpu-sysregs.h.inc     |  1 +
 target/arm/helper.c              | 32 ++++++++++++-----
 target/arm/internals.h           |  5 +++
 target/arm/tcg/cpu64.c           |  4 +++
 tests/tcg/aarch64/system/asid2.c | 76 ++++++++++++++++++++++++++++++++++++++++
 7 files changed, 118 insertions(+), 8 deletions(-)
---
base-commit: 9c23f2a7b0b45277693a14074b1aaa827eecdb92
change-id: 20251210-jmac-asid2-a82ba351478d

Best regards,
-- 
Jim MacArthur <jim.macarthur@linaro.org>



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

end of thread, other threads:[~2025-12-11 14:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-10 14:50 [PATCH v6 0/4] Basic ASID2 support Jim MacArthur
2025-12-10 14:50 ` [PATCH v6 1/4] target/arm: Enable ID_AA64MMFR4_EL1 register Jim MacArthur
2025-12-10 14:50 ` [PATCH v6 2/4] target/arm: Allow writes to FNG1, FNG0, A2 Jim MacArthur
2025-12-11 14:42   ` Richard Henderson
2025-12-10 14:50 ` [PATCH v6 3/4] target/arm/tcg/cpu64.c: Enable ASID2 for cpu_max Jim MacArthur
2025-12-11 14:42   ` Richard Henderson
2025-12-10 14:50 ` [PATCH v6 4/4] tests: Add test for ASID2 and write/read of feature bits Jim MacArthur

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).