[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 15/24] exec: Restrict inclusion of 'user/guest-base.h'
From: |
Anton Johansson |
Subject: |
Re: [PATCH 15/24] exec: Restrict inclusion of 'user/guest-base.h' |
Date: |
Thu, 25 Apr 2024 09:42:03 +0200 |
On 18/04/24, Philippe Mathieu-Daudé wrote:
> Declare 'have_guest_base' in "user/guest-base.h".
>
> Very few files require this header, so explicitly include
> it there instead of "exec/cpu-all.h" which is used in many
> source files.
>
> Assert this user-specific header is only included from user
> emulation.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> Message-Id: <20231211212003.21686-23-philmd@linaro.org>
> ---
> include/exec/cpu-all.h | 3 ---
> include/exec/cpu_ldst.h | 2 ++
> include/user/guest-base.h | 6 ++++++
> bsd-user/main.c | 1 +
> linux-user/elfload.c | 1 +
> linux-user/main.c | 1 +
> 6 files changed, 11 insertions(+), 3 deletions(-)
Reviewed-by: Anton Johansson <anjo@rev.ng>
- Re: [PATCH 10/24] exec: Reduce tlb_set_dirty() declaration scope, (continued)
- [PATCH 06/24] exec: Have guest_addr_valid() methods take abi_ptr/size_t arguments, Philippe Mathieu-Daudé, 2024/04/18
- [PATCH 08/24] physmem: Move TCG CPU IOTLB methods around, Philippe Mathieu-Daudé, 2024/04/18
- [PATCH 12/24] exec: Move CPUTLBEntry helpers to cputlb.c, Philippe Mathieu-Daudé, 2024/04/18
- [PATCH 11/24] exec: Move tlb_reset_dirty*() declarations to 'exec/cputlb.h', Philippe Mathieu-Daudé, 2024/04/18
- [PATCH 15/24] exec: Restrict inclusion of 'user/guest-base.h', Philippe Mathieu-Daudé, 2024/04/18
- Re: [PATCH 15/24] exec: Restrict inclusion of 'user/guest-base.h',
Anton Johansson <=
- [PATCH 13/24] target/sparc: Replace abi_ulong by uint32_t for TARGET_ABI32, Philippe Mathieu-Daudé, 2024/04/18
- [PATCH 14/24] exec: Rename 'exec/user/guest-base.h' as 'user/guest-base.h', Philippe Mathieu-Daudé, 2024/04/18
- [PATCH 19/24] gdbstub: Avoid including 'cpu.h' in 'gdbstub/helpers.h', Philippe Mathieu-Daudé, 2024/04/18
- [PATCH 23/24] exec: Remove 'disas/disas.h' from 'exec/log.h', Philippe Mathieu-Daudé, 2024/04/18
- [PATCH 24/24] exec: Remove unnecessary inclusions of 'hw/core/cpu.h', Philippe Mathieu-Daudé, 2024/04/18