Re: [Qemu-devel] [PATCH v3 05/28] riscv: hart: Support heterogeneous harts population

2019-08-11 Thread Richard Henderson
On 8/11/19 1:06 AM, Bin Meng wrote: > +/* heterogeneous harts */ > +while (tmp_type) { > +if (n >= s->num_harts) { > +break; > +} > +riscv_hart_realize(s, n++, tmp_type, errp); > +last_type = tmp_type; > +tm

[Qemu-devel] [PATCH v3 05/28] riscv: hart: Support heterogeneous harts population

2019-08-11 Thread Bin Meng
At present we only allow symmetric harts to be created. In order to support heterogeneous harts like SiFive FU540, update hart array's "cpu-type" property to allow cpu type to be set per hart, separated by delimiter ",". The frist cpu type before the delimiter is assigned to hart 0, and the second