On Thu, Dec 06, 2012 at 03:59:46PM +0000, Peter Maydell wrote: > On 6 December 2012 15:37, Eduardo Habkost <ehabk...@redhat.com> wrote: > > target-arm has very similar code. Isn't it better to first write a > > common reusable function to list CPU models using the list of > > subclasses, instead of adding very similar functions to all > > architectures? > > What would be particularly useful to have as a common > utility routine is support for x86-style +feature,-feature > syntax. At the moment we don't implement that on most > other targets but it would be good to have that on ARM > at some point.
Once we finish the work on x86, I plan to make the code reusable by other architectures. That would include the +feature,-feature parsing and the CPU model -> CPU class lookup (this one may be more complicated to make reusable, but I think it's doable). -- Eduardo