Re: [Qemu-devel] [RFC PATCH 07/11] scripts/decodetree: Add add_func_check()

2018-11-12 Thread Richard Henderson
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,

[Qemu-devel] [RFC PATCH 07/11] scripts/decodetree: Add add_func_check()

2018-11-11 Thread Philippe Mathieu-Daudé
The '>' token allow to call a check(arg) function. This is useful to assert an instruction is supported by an ISA. Signed-off-by: Philippe Mathieu-Daudé --- scripts/decodetree.py | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/scripts/decodetree.py