On Wed, May 28, 2025 at 05:01:26PM -0300, Daniel Henrique Barboza wrote: > We want to configure other CPU types to use profiles as an alternative > to adding every profile extension explicitly, i.e. a profile is nothing > more than an extension bundle. > > This means that a vendor CPU can set .profile=rva23s64 while having the > same handling as any other vendor CPU. Same thing with all other CPU > types. > > Signed-off-by: Daniel Henrique Barboza <dbarb...@ventanamicro.com> > --- > target/riscv/cpu.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c > index fe21e0fb44..4a30cf8444 100644 > --- a/target/riscv/cpu.c > +++ b/target/riscv/cpu.c > @@ -2713,7 +2713,6 @@ static void riscv_cpu_class_base_init(ObjectClass *c, > const void *data) > mcc->def->bare |= def->bare; > if (def->profile) { > assert(profile_extends(def->profile, mcc->def->profile)); > - assert(mcc->def->bare); > mcc->def->profile = def->profile; > } > if (def->misa_mxl_max) { > -- > 2.49.0 >
Reviewed-by: Andrew Jones <ajo...@ventanamicro.com>