qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* v8.1M cpu emulation and target-arm feature-identification strategy
@ 2020-08-05 11:08 Peter Maydell
  2020-08-05 12:22 ` Philippe Mathieu-Daudé
  2020-08-05 16:13 ` Richard Henderson
  0 siblings, 2 replies; 8+ messages in thread
From: Peter Maydell @ 2020-08-05 11:08 UTC (permalink / raw)
  To: QEMU Developers, qemu-arm, Richard Henderson, Alex Bennée

Mostly recently we've been aiming for QEMU emulation code in
target/arm to use ID register fields to determine whether a
feature is present or not (the isar_feature_* functions) rather
than the old style of defining ARM_FEATURE_* flags. This seems to
be working out well for A-profile. However, for v8.1M there are
a small handful of minor behaviour differences which don't have an
associated ID register field, but which are instead in the spec
and pseudocode just called out as "if this is a v8.1M CPU".
(The major v8.1M new features do have ID register fields.)

I can think of two ways to handle this:
 (1) define an ARM_FEATURE_V81M flag
 (2) define an isar_feature_aa32_v81m() function which under the
     hood is actually testing for a specific feature which happens
     to be known to be always present in v8.1M, like low-overhead-branches
     (ie ID_ISAR0.CmpBranch >=3)

Any preferences ?

thanks
-- PMM


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

end of thread, other threads:[~2020-08-05 19:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-05 11:08 v8.1M cpu emulation and target-arm feature-identification strategy Peter Maydell
2020-08-05 12:22 ` Philippe Mathieu-Daudé
2020-08-05 16:13 ` Richard Henderson
2020-08-05 16:45   ` Alex Bennée
2020-08-05 16:52     ` Peter Maydell
2020-08-05 17:00       ` Richard Henderson
2020-08-05 19:02         ` Peter Maydell
2020-08-05 19:16         ` Peter Maydell

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