mbox series

[for,10.1,0/3] target/i386: share some EFLAGS code between TCG and x86_emu

Message ID 20250403131753.82072-1-pbonzini@redhat.com (mailing list archive)
Headers show
Series target/i386: share some EFLAGS code between TCG and x86_emu | expand

Message

Paolo Bonzini April 3, 2025, 1:17 p.m. UTC
This reduces by ~20% the size of helper_cc_compute_all, and also
shares some code between TCG and x86_emu.  Also, the line of code
delta is negative despite adding a bunch of comments. :)

Paolo

Paolo Bonzini (3):
  target/i386: tcg: simplify computation of AF after INC/DEC
  target/i386: emulate: microoptimize and explain
    ADD_COUT_VEC/SUB_COUT_VEC
  target/i386: tcg: use cout to commonize add/adc/sub/sbb cases

 target/i386/cpu.h                        | 25 +++++++
 target/i386/tcg/cc_helper_template.h.inc | 90 ++++++++----------------
 target/i386/hvf/x86_flags.c              |  9 ---
 3 files changed, 56 insertions(+), 68 deletions(-)