diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2022-08-26 23:09:27 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-09-01 20:16:33 +0200 |
| commit | 7f326902433052e97a6aa9539f45d5a8a1fdd172 (patch) | |
| tree | a081a262fa8d94f8e8b13975f9ff3d2dd228d139 /scripts/qapi/common.py | |
| parent | ce4fa29f949595666ecea52eadc84ca899ccf2a4 (diff) | |
| download | focaccia-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/common.py')
0 files changed, 0 insertions, 0 deletions