aboutsummaryrefslogtreecommitdiff
path: root/scripts/decodetree.py
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2018-10-23 11:05:27 +0100
committerRichard Henderson <richard.henderson@linaro.org>2018-10-31 16:48:54 +0000
commit3a7be5546506be62d5c6c4b804119cedf9e367d6 (patch)
treefad119a158f4dd7291936d1f169a59feb886827d /scripts/decodetree.py
parentabd04f9290094f4eb7f3c07335766bbac3de22bb (diff)
decodetree: Remove "insn" argument from trans_* expanders
This allows trans_* expanders to be shared between decoders for 32 and 16-bit insns, by not tying the expander to the size of the insn that produced it. This change requires adjusting the two existing users to match. Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/decodetree.py')
-rwxr-xr-xscripts/decodetree.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/decodetree.py b/scripts/decodetree.py
index 28bbd4e3c1..6670d58cc1 100755
--- a/scripts/decodetree.py
+++ b/scripts/decodetree.py
@@ -466,8 +466,7 @@ class Pattern(General):
output('typedef ', self.base.base.struct_name(),
' arg_', self.name, ';\n')
output(translate_scope, 'bool ', translate_prefix, '_', self.name,
- '(DisasContext *ctx, arg_', self.name,
- ' *a, ', insntype, ' insn);\n')
+ '(DisasContext *ctx, arg_', self.name, ' *a);\n')
def output_code(self, i, extracted, outerbits, outermask):
global translate_prefix
@@ -479,7 +478,7 @@ class Pattern(General):
for n, f in self.fields.items():
output(ind, 'u.f_', arg, '.', n, ' = ', f.str_extract(), ';\n')
output(ind, 'return ', translate_prefix, '_', self.name,
- '(ctx, &u.f_', arg, ', insn);\n')
+ '(ctx, &u.f_', arg, ');\n')
# end Pattern