mbox series

[00/16] target/i386/tcg: translation cleanups

Message ID 20240524081019.1141359-1-pbonzini@redhat.com (mailing list archive)
Headers show
Series target/i386/tcg: translation cleanups | expand

Message

Paolo Bonzini May 24, 2024, 8:10 a.m. UTC
Some cleanups in translate.c, which I could make now that the
it's smaller and it's easier to understand how the various
utility functions are used.

1-7: cleanups for gen_eob

8-14: inlining and removing macros

15-16: cleanups for cc_op vs. helpers

Paolo

Paolo Bonzini (16):
  target/i386: remove unnecessary gen_update_cc_op before gen_eob*
  target/i386: cleanup eob handling of RSM
  target/i386: document and group DISAS_* constants
  target/i386: avoid calling gen_eob_syscall before tb_stop
  target/i386: avoid calling gen_eob_inhibit_irq before tb_stop
  target/i386: assert that gen_update_eip_cur and gen_update_eip_next
    are the same in tb_stop
  target/i386: raze the gen_eob* jungle
  target/i386: reg in gen_ldst_modrm is always OR_TMP0
  target/i386: split gen_ldst_modrm for load and store
  target/i386: inline gen_add_A0_ds_seg
  target/i386: use mo_stacksize more
  target/i386: introduce gen_lea_ss_ofs
  target/i386: clean up repeated string operations
  target/i386: remove aflag argument of gen_lea_v_seg
  target/i386: cpu_load_eflags already sets cc_op
  target/i386: set CC_OP in helpers if they want CC_OP_EFLAGS

 target/i386/ops_sse.h        |   8 +
 target/i386/tcg/fpu_helper.c |   2 +
 target/i386/tcg/int_helper.c |  13 +-
 target/i386/tcg/seg_helper.c |  16 +-
 target/i386/tcg/translate.c  | 322 +++++++++++++++--------------------
 target/i386/tcg/emit.c.inc   |  58 +++----
 6 files changed, 194 insertions(+), 225 deletions(-)