summary refs log tree commit diff stats
path: root/scripts/qapi/parser.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-08-26 23:09:27 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2022-09-01 20:16:33 +0200
commit7f326902433052e97a6aa9539f45d5a8a1fdd172 (patch)
treea081a262fa8d94f8e8b13975f9ff3d2dd228d139 /scripts/qapi/parser.py
parentce4fa29f949595666ecea52eadc84ca899ccf2a4 (diff)
downloadfocaccia-qemu-7f326902433052e97a6aa9539f45d5a8a1fdd172.tar.gz
focaccia-qemu-7f326902433052e97a6aa9539f45d5a8a1fdd172.zip
target/i386: do not cast gen_helper_* function pointers
Use a union to store the various possible kinds of function pointers, and
access the correct one based on the flags.

SSEOpHelper_table6 and SSEOpHelper_table7 right now only have one case,
but this would change with AVX's 3- and 4-argument operations.  Use
unions there too, to keep the code more similar for the three tables.

Extracted from a patch by Paul Brook <paul@nowt.org>.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions