[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 10:45:36 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 |
On 6/5/21 10:50 PM, Richard Henderson wrote:
> On 6/4/21 8:52 AM, Alex Bennée wrote:
>> diff --git a/target/arm/cpu-exceptions-aa64.h
>> b/target/arm/cpu-exceptions-aa64.h
>> new file mode 100644
>> index 0000000000..64f800a15d
>> --- /dev/null
>> +++ b/target/arm/cpu-exceptions-aa64.h
>> @@ -0,0 +1,28 @@
>> +/*
>> + * QEMU AArch64 CPU Exceptions Sysemu code
>> + *
>> + * Copyright (c) 2012 SUSE LINUX Products GmbH
>> + *
>> + * This program is free software; you can redistribute it and/or
>> + * modify it under the terms of the GNU General Public License
>> + * as published by the Free Software Foundation; either version 2
>> + * of the License, or (at your option) any later version.
>> + *
>> + * This program is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
>> + * GNU General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU General Public License
>> + * along with this program; if not, see
>> + *<http://www.gnu.org/licenses/gpl-2.0.html>
>> + */
>> +
>> +#ifndef CPU_EXCEPTIONS_AA64_H
>> +#define CPU_EXCEPTIONS_AA64_H
>> +
>> +#include "cpu.h"
>> +
>> +void arm_cpu_do_interrupt_aarch64(CPUState *cs);
>> +
>> +#endif /* CPU_EXCEPTIONS_AA64_H */
>
> 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.
I think we should be better at creating meaningful modules, instead of
collections of unrelated functions.
Not defending this particular change, just answering your specific question.
Thanks,
C
> Or some other header that collects sysemu
> specific declarations?
>
> Also, "cpu.h" is not required by this declaration, as I've pointed out before.
>
>
> r~
>
- [PATCH v16 61/99] target/arm: remove broad "else" statements when checking accels, (continued)
- [PATCH v16 61/99] target/arm: remove broad "else" statements when checking accels, Alex Bennée, 2021/06/04
- [PATCH v16 93/99] meson: Introduce target-specific Kconfig, Alex Bennée, 2021/06/04
- [PATCH v16 62/99] target/arm: remove kvm-stub.c, Alex Bennée, 2021/06/04
- [PATCH v16 79/99] target/arm: tcg: restrict ZCR cpregs to TARGET_AARCH64, Alex Bennée, 2021/06/04
- [PATCH v16 78/99] target/arm: cpu-exceptions, cpu-exceptions-aa64: new modules, Alex Bennée, 2021/06/04
- Re: [PATCH v16 78/99] target/arm: cpu-exceptions, cpu-exceptions-aa64: new modules, Richard Henderson, 2021/06/05
[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