[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 06/11] target/arm: Factor out code for setting MTE TCF0 fi
From: |
Richard Henderson |
Subject: |
Re: [PATCH v6 06/11] target/arm: Factor out code for setting MTE TCF0 field |
Date: |
Fri, 28 Jun 2024 10:00:18 -0700 |
User-agent: |
Mozilla Thunderbird |
On 6/28/24 08:49, Gustavo Romero wrote:
I thought you meant osdep.h should not be included _at all_ in my case, either
in mte_user_helper.h or in mte_user_helper.c. Maybe the wording in the docs
should be "Do not include "qemu/osdep.h" from header files. Include it from .c
files, when necessary.".
Not "when necessary", always, and always first.
See the "Include directives" section of docs/devel/style.rst, which does explicitly say
'Do not include "qemu/osdep.h" from header files'.
I think we agree osdep.h is necessary and must be put in mte_user_helper.c. But
that left me wondering how it would work for sources including
mte_user_helper.h,
because it can be the case they don't have the declarations for the types used
in
the function prototypes, in this case, for CPUArchState and abi_long types in
arm_set_mte_tcf0.
CPUArchState will come from qemu/typedefs.h via osdep.h.
For this particular function, 'int' would have been enough,
since we only care about the low two bits.
r~
- [PATCH v6 01/11] gdbstub: Clean up process_string_cmd, (continued)
- [PATCH v6 01/11] gdbstub: Clean up process_string_cmd, Gustavo Romero, 2024/06/28
- [PATCH v6 03/11] gdbstub: Add support for target-specific stubs, Gustavo Romero, 2024/06/28
- [PATCH v6 02/11] gdbstub: Move GdbCmdParseEntry into a new header file, Gustavo Romero, 2024/06/28
- [PATCH v6 04/11] target/arm: Fix exception case in allocation_tag_mem_probe, Gustavo Romero, 2024/06/28
- [PATCH v6 05/11] target/arm: Make some MTE helpers widely available, Gustavo Romero, 2024/06/28
- [PATCH v6 06/11] target/arm: Factor out code for setting MTE TCF0 field, Gustavo Romero, 2024/06/28
Re: [PATCH v6 06/11] target/arm: Factor out code for setting MTE TCF0 field, Alex Bennée, 2024/06/28
[PATCH v6 07/11] gdbstub: Make hex conversion function non-internal, Gustavo Romero, 2024/06/28
[PATCH v6 08/11] gdbstub: Pass CPU context to command handler, Gustavo Romero, 2024/06/28
[PATCH v6 09/11] gdbstub: Use true to set cmd_startswith, Gustavo Romero, 2024/06/28
[PATCH v6 10/11] gdbstub: Add support for MTE in user mode, Gustavo Romero, 2024/06/28
[PATCH v6 11/11] tests/tcg/aarch64: Add MTE gdbstub tests, Gustavo Romero, 2024/06/28