qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	qemu-arm@nongnu.org, alex.bennee@linaro.org, kvm@vger.kernel.org,
	"Peter Maydell" <peter.maydell@linaro.org>,
	anjo@rev.ng, "Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: Re: [PATCH v5 41/48] target/arm/tcg/crypto_helper: compile file twice (system, user)
Date: Mon, 5 May 2025 11:53:19 -0700	[thread overview]
Message-ID: <83038814-8527-44ec-b1c1-2d17362d08da@linaro.org> (raw)
In-Reply-To: <c67c4a79-7855-4d15-8064-b2f448ac9a42@linaro.org>

On 5/5/25 11:51 AM, Richard Henderson wrote:
> On 5/5/25 11:47, Pierrick Bouvier wrote:
>> On 5/5/25 11:38 AM, Richard Henderson wrote:
>>> On 5/4/25 18:52, Pierrick Bouvier wrote:
>>>> --- a/target/arm/tcg/meson.build
>>>> +++ b/target/arm/tcg/meson.build
>>>> @@ -30,7 +30,6 @@ arm_ss.add(files(
>>>>       'translate-mve.c',
>>>>       'translate-neon.c',
>>>>       'translate-vfp.c',
>>>> -  'crypto_helper.c',
>>>>       'hflags.c',
>>>>       'iwmmxt_helper.c',
>>>>       'm_helper.c',
>>>> @@ -63,3 +62,10 @@ arm_system_ss.add(files(
>>>>     arm_system_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('cpu-v7m.c'))
>>>>     arm_user_ss.add(when: 'TARGET_AARCH64', if_false: files('cpu-v7m.c'))
>>>> +
>>>> +arm_common_system_ss.add(files(
>>>> +  'crypto_helper.c',
>>>> +))
>>>> +arm_user_ss.add(files(
>>>> +  'crypto_helper.c',
>>>> +))
>>>
>>> Could this use arm_common_ss?  I don't see anything that needs to be built user/system in
>>> this file...
>>>
>>
>> It needs vec_internal.h (clear_tail), which needs CPUARMState, which pulls cpu.h, which
>> uses CONFIG_USER_ONLY.
> 
> Ah, right.  I didn't see that coming.  :-)
>

I like the idea to have it built once though, since so far 
{arch}_common_ss was not used, and I was not even sure such a 
compilation unit exists.

>> I'll take a look to break this dependency, so it can be built only once, and for other
>> files as well.
> 
> Thanks.  Building twice is still an improvement, so for this set,
> 
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> 
> r~



  reply	other threads:[~2025-05-05 18:53 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-05  1:51 [PATCH v5 00/48] single-binary: compile target/arm twice Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 01/48] target/arm: Replace target_ulong -> uint64_t for HWBreakpoint Pierrick Bouvier
2025-05-05 10:44   ` Philippe Mathieu-Daudé
2025-05-05 18:39     ` Pierrick Bouvier
2025-05-05 19:13       ` Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 02/48] include/system/hvf: missing vaddr include Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 03/48] meson: add common libs for target and target_system Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 04/48] meson: apply target config for picking files from libsystem and libuser Pierrick Bouvier
2025-05-05 16:59   ` Richard Henderson
2025-05-05 17:41     ` Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 05/48] target/arm: move kvm stubs and remove CONFIG_KVM from kvm_arm.h Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 06/48] target/arm/kvm-stub: add kvm_arm_reset_vcpu stub Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 07/48] target/arm/cpu: move arm_cpu_kvm_set_irq to kvm.c Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 08/48] accel/hvf: add hvf_enabled() for common code Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 09/48] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 10/48] target/arm/cpu: remove TARGET_AARCH64 around aarch64_cpu_dump_state common Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 11/48] target/arm/cpu: remove TARGET_AARCH64 in arm_cpu_finalize_features Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 12/48] target/arm/cpu: compile file twice (user, system) only Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 13/48] target/arm/cpu32-stubs.c: compile file twice (user, system) Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 14/48] tcg: add vaddr type for helpers Pierrick Bouvier
2025-05-05 18:15   ` Richard Henderson
2025-05-05  1:51 ` [PATCH v5 15/48] target/arm/helper: use vaddr instead of target_ulong for exception_pc_alignment Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 16/48] target/arm/helper: use vaddr instead of target_ulong for probe_access Pierrick Bouvier
2025-05-05 18:16   ` Richard Henderson
2025-05-05  1:51 ` [PATCH v5 17/48] target/arm/helper: extract common helpers Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 18/48] target/arm/debug_helper: only include " Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 19/48] target/arm/debug_helper: remove target_ulong Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 20/48] target/arm/debug_helper: compile file twice (user, system) Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 21/48] target/arm/helper: restrict include to common helpers Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 22/48] target/arm/helper: replace target_ulong by vaddr Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 23/48] target/arm/helper: expose aarch64 cpu registration Pierrick Bouvier
2025-05-05  1:51 ` [PATCH v5 24/48] target/arm/helper: remove remaining TARGET_AARCH64 Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 25/48] target/arm/helper: compile file twice (user, system) Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 26/48] target/arm/vfp_fpscr: " Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 27/48] target/arm/arch_dump: remove TARGET_AARCH64 conditionals Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 28/48] target/arm/arch_dump: compile file once (system) Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 29/48] target/arm/arm-powerctl: " Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 30/48] target/arm/cortex-regs: " Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 31/48] target/arm/ptw: replace target_ulong with int64_t Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 32/48] target/arm/ptw: replace TARGET_AARCH64 by CONFIG_ATOMIC64 from arm_casq_ptw Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 33/48] target/arm/ptw: compile file once (system) Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 34/48] target/arm/meson: accelerator files are not needed in user mode Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 35/48] target/arm/kvm-stub: compile file once (system) Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 36/48] target/arm/machine: reduce migration include to avoid target specific definitions Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 37/48] target/arm/machine: remove TARGET_AARCH64 from migration state Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 38/48] target/arm/machine: move cpu_post_load kvm bits to kvm_arm_cpu_post_load function Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 39/48] target/arm/kvm-stub: add missing stubs Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 40/48] target/arm/machine: compile file once (system) Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 41/48] target/arm/tcg/crypto_helper: compile file twice (system, user) Pierrick Bouvier
2025-05-05 18:38   ` Richard Henderson
2025-05-05 18:47     ` Pierrick Bouvier
2025-05-05 18:51       ` Richard Henderson
2025-05-05 18:53         ` Pierrick Bouvier [this message]
2025-05-05 19:17           ` Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 42/48] target/arm/tcg/hflags: " Pierrick Bouvier
2025-05-05 18:41   ` Richard Henderson
2025-05-05  1:52 ` [PATCH v5 43/48] target/arm/tcg/iwmmxt_helper: " Pierrick Bouvier
2025-05-05 18:43   ` Richard Henderson
2025-05-05 18:51     ` Richard Henderson
2025-05-05 19:18     ` Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 44/48] target/arm/tcg/neon_helper: " Pierrick Bouvier
2025-05-05 18:44   ` Richard Henderson
2025-05-05 18:52     ` Richard Henderson
2025-05-05 19:21     ` Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 45/48] target/arm/tcg/tlb_helper: " Pierrick Bouvier
2025-05-05 18:45   ` Richard Henderson
2025-05-05  1:52 ` [PATCH v5 46/48] target/arm/tcg/tlb-insns: " Pierrick Bouvier
2025-05-05 18:49   ` Richard Henderson
2025-05-05 19:29     ` Pierrick Bouvier
2025-05-05  1:52 ` [PATCH v5 47/48] target/arm/tcg/arith_helper: " Pierrick Bouvier
2025-05-05 18:54   ` Richard Henderson
2025-05-05 19:33     ` Pierrick Bouvier
2025-05-05 19:37       ` Richard Henderson
2025-05-05  1:52 ` [PATCH v5 48/48] target/arm/tcg/vfp_helper: " Pierrick Bouvier
2025-05-05 18:57   ` Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83038814-8527-44ec-b1c1-2d17362d08da@linaro.org \
    --to=pierrick.bouvier@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=anjo@rev.ng \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).