Skip to contentSkip to conversation

target/arm: Rely on id regs instead of features

PATCH Peter Maydell 3 participants 3 messages Oct 2, 2018 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 10 lines · Peter Maydell
Quoted 5 lines · Richard Henderson

There are more feature bits that could be converted, but I thought I should show the work to this point to get feedback.

This is the "v2" as compared to
http://lists.nongnu.org/archive/html/qemu-devel/2018-09/msg01849.html

So having written the code both ways round, which do you think works out nicer? (or at least least-worst :-))

Using the *FEATURE*() and FIELD_DP/EX() macros are a great improvement, the code is more concise, easier to review.

I also appreciate the arm_features enum cleaned, using the previous macros on ISAR.

I doubt this version works worst, but it definitively looks nicer, thus less bug-prone.

#3 lore raw
In reply to Peter Maydell
Quoted 10 lines · Peter Maydell
Quoted 5 lines · Richard Henderson

There are more feature bits that could be converted, but I thought I should show the work to this point to get feedback.

This is the "v2" as compared to
http://lists.nongnu.org/archive/html/qemu-devel/2018-09/msg01849.html

So having written the code both ways round, which do you think works out nicer? (or at least least-worst :-))

My preference is for v2.

r~