]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/i386: do not cast gen_helper_* function pointers
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Aug 2022 21:09:27 +0000 (23:09 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Sep 2022 18:16:33 +0000 (20:16 +0200)
commit7f326902433052e97a6aa9539f45d5a8a1fdd172
treea081a262fa8d94f8e8b13975f9ff3d2dd228d139
parentce4fa29f949595666ecea52eadc84ca899ccf2a4
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>
target/i386/tcg/translate.c