[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH 07/11] scripts/decodetree: Add add_func_chec
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [RFC PATCH 07/11] scripts/decodetree: Add add_func_check() |
Date: |
Mon, 12 Nov 2018 09:31:22 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 |
On 11/12/18 12:36 AM, Philippe Mathieu-Daudé wrote:
> for n, f in self.fields.items():
> output(ind, 'u.f_', arg, '.', n, ' = ', f.str_extract(), ';\n')
> + for f, a in self.check_funcs:
> + output(ind, 'check_', f, '(ctx, ', a, ');\n')
> output(ind, 'return ', translate_prefix, '_', self.name,
> '(ctx, &u.f_', arg, ');\n')
I don't see the value in asserting the isa here.
If this were a conditional check, which might fall through to either another
pattern or to return false, maybe.
r~
- [Qemu-devel] [RFC PATCH 00/11] decodetree: Add tokens to ease checking ISA flags, Philippe Mathieu-Daudé, 2018/11/11
- [Qemu-devel] [RFC PATCH 05/11] decodetree: Force Python to print unsigned values, Philippe Mathieu-Daudé, 2018/11/11
- [Qemu-devel] [RFC PATCH 11/11] target/mips: Port MIPS64 DCL[Z/O] to decodetree, Philippe Mathieu-Daudé, 2018/11/11
- [Qemu-devel] [RFC PATCH 07/11] scripts/decodetree: Add add_func_check(), Philippe Mathieu-Daudé, 2018/11/11
- Re: [Qemu-devel] [RFC PATCH 07/11] scripts/decodetree: Add add_func_check(),
Richard Henderson <=
- [Qemu-devel] [RFC PATCH 03/11] target/mips: Move the !ISA_MIPS32R6 check out of decode_opc_special2_legacy, Philippe Mathieu-Daudé, 2018/11/11
- [Qemu-devel] [RFC PATCH 01/11] MAINTAINERS: Add scripts/decodetree.py to the TCG section, Philippe Mathieu-Daudé, 2018/11/11
- [Qemu-devel] [RFC PATCH 04/11] target/mips: Avoid access to CPUMIPSState from decode* functions, Philippe Mathieu-Daudé, 2018/11/11
- [Qemu-devel] [RFC PATCH 06/11] scripts/decodetree: Allow empty specifications, Philippe Mathieu-Daudé, 2018/11/11
- [Qemu-devel] [RFC PATCH 09/11] target/mips: Port SYNCI to decodetree, Philippe Mathieu-Daudé, 2018/11/11
- [Qemu-devel] [RFC PATCH 10/11] scripts/decodetree: Add add_cond_check(), Philippe Mathieu-Daudé, 2018/11/11
- [Qemu-devel] [RFC PATCH 02/11] decodetree: Add multiple include guard, Philippe Mathieu-Daudé, 2018/11/11