On 8/26/22 16:11, Paolo Bonzini wrote:
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<[email protected]>.

Signed-off-by: Paolo Bonzini<[email protected]>
---
  target/i386/tcg/translate.c | 75 ++++++++++++++++++-------------------
  1 file changed, 37 insertions(+), 38 deletions(-)

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to