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,
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