[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v16 19/23] i386: split cpu accelerators from cpu.c, using Acc
From: |
Claudio Fontana |
Subject: |
Re: [PATCH v16 19/23] i386: split cpu accelerators from cpu.c, using AccelCPUClass |
Date: |
Wed, 10 Feb 2021 12:30:11 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 |
Ciao Paolo,
On 2/5/21 9:04 PM, Richard Henderson wrote:
> On 2/4/21 6:39 AM, Claudio Fontana wrote:
>> +static void hvf_cpu_accel_class_init(ObjectClass *oc, void *data)
>> +{
>> + AccelCPUClass *acc = ACCEL_CPU_CLASS(oc);
>> +
>> + acc->cpu_realizefn = host_cpu_realizefn;
>> + acc->cpu_instance_init = hvf_cpu_instance_init;
>> +};
>
> Watch the stray ; after functions.
Thanks Richard, removed.
> Make sure there's a blank line in between functions and file-scope structure
> definitions.
I'll keep an eye on it, let me know if you see an example in this or other
patches.
>
>> +static const TypeInfo hvf_cpu_accel_type_info = {
>> + .name = ACCEL_CPU_NAME("hvf"),
>> +
>> + .parent = TYPE_ACCEL_CPU,
>> + .class_init = hvf_cpu_accel_class_init,
>> + .abstract = true,
>> +};
>> +static void hvf_cpu_accel_register_types(void)
>> +{
>> + type_register_static(&hvf_cpu_accel_type_info);
>> +}
>
> The rest looks ok, but I would like to see other i386 review.
Thanks, maybe Paolo could help? It's just code shuffling, but of course a
mistake is always possible.
Claudio
- [PATCH v16 21/23] accel: introduce new accessor functions, (continued)
- [PATCH v16 18/23] accel: introduce AccelCPUClass extending CPUClass, Claudio Fontana, 2021/02/04
- [PATCH v16 14/23] cpu: move debug_check_watchpoint to tcg_ops, Claudio Fontana, 2021/02/04
- [PATCH v16 15/23] cpu: tcg_ops: move to tcg-cpu-ops.h, keep a pointer in CPUClass, Claudio Fontana, 2021/02/04
- [PATCH v16 17/23] accel: replace struct CpusAccel with AccelOpsClass, Claudio Fontana, 2021/02/04
- [PATCH v16 19/23] i386: split cpu accelerators from cpu.c, using AccelCPUClass, Claudio Fontana, 2021/02/04
- [PATCH v16 23/23] accel-cpu: make cpu_realizefn return a bool, Claudio Fontana, 2021/02/04
- Re: [PATCH v16 00/23] i386 cleanup PART 2, Richard Henderson, 2021/02/05