[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 124/143] meson: target
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH 124/143] meson: target |
Date: |
Fri, 7 Aug 2020 11:11:27 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
On 07/08/20 11:04, Peter Maydell wrote:
> On Thu, 6 Aug 2020 at 21:09, Paolo Bonzini <pbonzini@redhat.com> wrote:
>>
>> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>>
>> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>
>
>
>> diff --git a/scripts/decodetree.py b/scripts/decodetree.py
>> index 694757b..4cd1e10 100755
>> --- a/scripts/decodetree.py
>> +++ b/scripts/decodetree.py
>> @@ -1257,7 +1257,7 @@ def main():
>> long_opts = ['decode=', 'translate=', 'output=', 'insnwidth=',
>> 'static-decode=', 'varinsnwidth=']
>> try:
>> - (opts, args) = getopt.getopt(sys.argv[1:], 'o:vw:', long_opts)
>> + (opts, args) = getopt.gnu_getopt(sys.argv[1:], 'o:vw:', long_opts)
>> except getopt.GetoptError as err:
>> error(0, err)
>> for o, a in opts:
>
> This change to the decodetree script doesn't seem like it
> belongs in this patch ?
Marc-André did this, I'll check how/why it ended up here and document it
in the commit message.
>
>> --- /dev/null
>> +++ b/target/arm/meson.build
>> @@ -0,0 +1,62 @@
>> +gen = [
>> + decodetree.process('sve.decode', extra_args: '--decode=disas_sve'),
>> + decodetree.process('neon-shared.decode', extra_args:
>> '--static-decode=disas_neon_shared'),
>> + decodetree.process('neon-dp.decode', extra_args:
>> '--static-decode=disas_neon_dp'),
>> + decodetree.process('neon-ls.decode', extra_args:
>> '--static-decode=disas_neon_ls'),
>> + decodetree.process('vfp.decode', extra_args: '--static-decode=disas_vfp'),
>> + decodetree.process('vfp-uncond.decode', extra_args:
>> '--static-decode=disas_vfp_uncond'),
>> + decodetree.process('a32.decode', extra_args: '--static-decode=disas_a32'),
>> + decodetree.process('a32-uncond.decode', extra_args:
>> '--static-decode=disas_a32_uncond'),
>> + decodetree.process('t32.decode', extra_args: '--static-decode=disas_t32'),
>> + decodetree.process('t16.decode', extra_args: ['-w', '16',
>> '--static-decode=disas_t16']),
>> +]
>> +
>> +arm_ss = ss.source_set()
>> +arm_ss.add(gen)
>> +arm_ss.add(files(
>> + 'cpu.c',
>> + 'crypto_helper.c',
>> + 'debug_helper.c',
>> + 'gdbstub.c',
>> + 'helper.c',
>> + 'iwmmxt_helper.c',
>> + 'm_helper.c',
>> + 'neon_helper.c',
>> + 'op_helper.c',
>> + 'tlb_helper.c',
>> + 'translate.c',
>> + 'vec_helper.c',
>> + 'vfp_helper.c',
>> + 'cpu_tcg.c',
>> +))
>> +arm_ss.add(zlib)
>
> Just to check, does this get the underlying dependencies right?
> ie translate.o depends on translate.c and also eg translate-vfp.inc.c,
> which in turn depends on vfp.decode ?
Yes...
> It's not clear to me why all the decodetree lines ended up in a
> single "gen = []" block -- they're independent of each other.
... and I'll answer to this in the .inc.c patch because it's related.
Paolo
- [PATCH 119/143] meson: convert hw/audio, (continued)
- [PATCH 119/143] meson: convert hw/audio, Paolo Bonzini, 2020/08/06
- [PATCH 120/143] meson: convert hw/adc, Paolo Bonzini, 2020/08/06
- [PATCH 121/143] meson: convert hw/acpi, Paolo Bonzini, 2020/08/06
- [PATCH 122/143] meson: convert hw/9pfs, cleanup, Paolo Bonzini, 2020/08/06
- [PATCH 123/143] meson: convert hw/arch*, Paolo Bonzini, 2020/08/06
- [PATCH 125/143] meson: accel, Paolo Bonzini, 2020/08/06
- [PATCH 126/143] meson: linux-user, Paolo Bonzini, 2020/08/06
- [PATCH 127/143] meson: bsd-user, Paolo Bonzini, 2020/08/06
- [PATCH 124/143] meson: target, Paolo Bonzini, 2020/08/06
- [PATCH 129/143] meson: plugins, Paolo Bonzini, 2020/08/06
- [PATCH 128/143] meson: cpu-emu, Paolo Bonzini, 2020/08/06
- [PATCH 131/143] meson: convert systemtap files, Paolo Bonzini, 2020/08/06
- [PATCH 130/143] meson: link emulators without Makefile.target, Paolo Bonzini, 2020/08/06
- [PATCH 132/143] rules.mak: remove version.o, Paolo Bonzini, 2020/08/06
- [PATCH 133/143] remove Makefile.target, Paolo Bonzini, 2020/08/06
- [PATCH 135/143] meson: build texi doc, Paolo Bonzini, 2020/08/06
- [PATCH 136/143] meson: convert check-block, Paolo Bonzini, 2020/08/06
- [PATCH 138/143] meson: replace create-config with meson configure_file, Paolo Bonzini, 2020/08/06
- [PATCH 140/143] meson: move SDL and SDL-image detection to meson, Paolo Bonzini, 2020/08/06