This is a rebase of the patch set I posted in July. There are no substantive changes since then.
The only comment at the time was re 05/10, where Paolo suggests optimizing access to CS overrides with the constant that we know via the TB operands. I chose to defer that, leaving things as they are with a simple load from ENV. r~ Richard Henderson (10): target-i386: Create gen_lea_v_seg target-i386: Introduce mo_stacksize target-i386: Use gen_lea_v_seg in gen_lea_modrm target-i386: Use gen_lea_v_seg in stack subroutines target-i386: Access segs via TCG registers target-i386: Use gen_lea_v_seg in pusha/popa target-i386: Rewrite gen_enter inline target-i386: Rewrite leave target-i386: Tidy gen_add_A0_im target-i386: Deconstruct the cpu_T array target-i386/helper.h | 4 - target-i386/seg_helper.c | 74 -- target-i386/translate.c | 1714 +++++++++++++++++++++------------------------- 3 files changed, 776 insertions(+), 1016 deletions(-) -- 2.5.0