On Wed, 14 Mar 2018 00:13:40 +0100 Philippe Mathieu-Daudé <f4...@amsat.org> wrote:
> On 02/02/2018 01:42 AM, Alistair Francis wrote: > > > > There are numorous QEMU machines that only have a single or a handful of > > valid CPU options. To simplyfy the management of specificying which CPU > > is/isn't valid let's create a property that can be set in the machine > > init. We can then check to see if the user supplied CPU is in that list > > or not. > > Sadly this series missed the 2.12 train. problematic part here is 'cpu_type -> cpu_model' conversion without introducing back cpu model names in boards code. Each target sort of already has this code 'cpu_list' for printing supported CPU models. What we need is to generalize it as most of the targets implement it the same way. And then reuse generic code for 'cpu_type -> cpu_model' so that boards won't have to be involved in it. So currently cpu_list needs a volunteer who would be able to generalize it and cleanup all targets across the the tree.