target/arm: Rely on id regs instead of features
A message that is not in the archive (sent off-list or not yet received): [email protected]
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 :-))
thanks
-- PMM
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.htmlSo 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.
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.htmlSo 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~