[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v16 78/99] target/arm: cpu-exceptions, cpu-exceptions-aa64: n
From: |
Claudio Fontana |
Subject: |
Re: [PATCH v16 78/99] target/arm: cpu-exceptions, cpu-exceptions-aa64: new modules |
Date: |
Thu, 10 Jun 2021 11:24:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 |
On 6/10/21 11:01 AM, Peter Maydell wrote:
> On Thu, 10 Jun 2021 at 09:45, Claudio Fontana <cfontana@suse.de> wrote:
>>
>> On 6/5/21 10:50 PM, Richard Henderson wrote:
>>> I don't see the point in the excessive replication of header files, for
>>> exactly
>>> one declaration. This is not the first example.
>>>
>>> What's wrong with internal.h?
>>
>> Doesn't mean anything and leads to a mess of unrelated code.
>
> It is all related: it is "things that the target/arm code needs,
> which are not needed by anything outside target/arm".
>
>> I think we should be better at creating meaningful modules
>
> target/arm is a meaningful grouping of code :-)
>
Well, seems a bit too large a grouping to me,
and it seems like more effort could be put into recognizing opportunities to
split things into self-contained units when they show up,
with more clearly defined and commented interfaces about inputs/outputs and
initialization dependencies,
instead of cramming everything together. Of course there is a balance to be
had, but my impression is that using exclusively things like internal.h
leads to people adding anything new just piling unrelated things on top, and
missing opportunities for doing things in a more self-contained way.
Just my 2c of course.
Ciao,
C.
[PATCH v16 52/99] target/arm: rename handle_semihosting to tcg_handle_semihosting, Alex Bennée, 2021/06/04
[PATCH v16 94/99] target/arm: move CONFIG_V7M out of default-devices, Alex Bennée, 2021/06/04
[PATCH v16 26/99] target/arm: move physical address translation to cpu-mmu, Alex Bennée, 2021/06/04
[PATCH v16 70/99] target/arm: move TCG gt timer creation code in tcg/, Alex Bennée, 2021/06/04
[PATCH v16 32/99] target/arm: move cpsr_read, cpsr_write to cpu_common, Alex Bennée, 2021/06/04
[PATCH v16 18/99] target/arm: tcg: add sysemu and user subdirs, Alex Bennée, 2021/06/04
[PATCH v16 64/99] tests: do not run test-hmp on all machines for ARM KVM-only, Alex Bennée, 2021/06/04