mirror of https://github.com/proxmox/mirror_qemu
decodetree: Produce clean output for an empty input file
This is interesting for bisection, where an output file is plumbed, but does not yet have patterns. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>master
parent
cd3e7fc18d
commit
82bfac1c06
|
@ -1049,15 +1049,16 @@ def main():
|
||||||
'(DisasContext *ctx, ', insntype, ' insn)\n{\n')
|
'(DisasContext *ctx, ', insntype, ' insn)\n{\n')
|
||||||
|
|
||||||
i4 = str_indent(4)
|
i4 = str_indent(4)
|
||||||
|
|
||||||
|
if len(allpatterns) != 0:
|
||||||
output(i4, 'union {\n')
|
output(i4, 'union {\n')
|
||||||
for n in sorted(arguments.keys()):
|
for n in sorted(arguments.keys()):
|
||||||
f = arguments[n]
|
f = arguments[n]
|
||||||
output(i4, i4, f.struct_name(), ' f_', f.name, ';\n')
|
output(i4, i4, f.struct_name(), ' f_', f.name, ';\n')
|
||||||
output(i4, '} u;\n\n')
|
output(i4, '} u;\n\n')
|
||||||
|
|
||||||
t.output_code(4, False, 0, 0)
|
t.output_code(4, False, 0, 0)
|
||||||
output(i4, 'return false;\n')
|
|
||||||
|
|
||||||
|
output(i4, 'return false;\n')
|
||||||
output('}\n')
|
output('}\n')
|
||||||
|
|
||||||
if output_file:
|
if output_file:
|
||||||
|
|
Loading…
Reference in New Issue