This is a revival of a patch set I posted in 2013. At the time Paolo had some comments on the keystone patch, and I didn't have time to address them. I've since made several revisions, and I think the patchset is in good shape, but I've lost those original comments.
Anyway, I'm reviving this now because I've got another patchset that depends on this cleanup. 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 | 68 -- target-i386/translate.c | 1755 +++++++++++++++++++++------------------------- 3 files changed, 814 insertions(+), 1013 deletions(-) -- 2.4.3