Re: [Qemu-devel] [PATCH v2 41/60] target-i386: Create gen_lea_v_seg

2013-12-27 Thread Peter Maydell
On 27 December 2013 14:49, Richard Henderson wrote: > On 12/26/2013 01:27 PM, Peter Maydell wrote: >>> The only time s->addseg will be false in 16-bit mode is during translation >>> of >>> LEA. I do need the addseg check there for LEA cleanup, but this change >>> should >>> not affect gen_strin

Re: [Qemu-devel] [PATCH v2 41/60] target-i386: Create gen_lea_v_seg

2013-12-27 Thread Richard Henderson
On 12/26/2013 01:27 PM, Peter Maydell wrote: >> The only time s->addseg will be false in 16-bit mode is during translation of >> LEA. I do need the addseg check there for LEA cleanup, but this change >> should >> not affect gen_string_movl. > > Oh, is that the bit that does: > > val = s

Re: [Qemu-devel] [PATCH v2 41/60] target-i386: Create gen_lea_v_seg

2013-12-26 Thread Peter Maydell
On 26 December 2013 21:27, Peter Maydell wrote: > Why is it OK to skip the addition of the base address for ES > (in the movl_A0_EDI case) when the comment for addseg says > it only applies to CS/DS/ES? Scratch that, misread of the comment. addseg applies to DS/ES/SS. > Why is it not OK to skip

Re: [Qemu-devel] [PATCH v2 41/60] target-i386: Create gen_lea_v_seg

2013-12-26 Thread Peter Maydell
On 26 December 2013 19:31, Richard Henderson wrote: > On 12/26/2013 10:38 AM, Peter Maydell wrote: >> The old MO_16 code for gen_string_movl* doesn't care >> about s->addseg, and always performs an add of a segment. >> This new code might stop without doing the addition. > > The only time s->addse

Re: [Qemu-devel] [PATCH v2 41/60] target-i386: Create gen_lea_v_seg

2013-12-26 Thread Richard Henderson
On 12/26/2013 10:38 AM, Peter Maydell wrote: > The old MO_16 code for gen_string_movl* doesn't care > about s->addseg, and always performs an add of a segment. > This new code might stop without doing the addition. The only time s->addseg will be false in 16-bit mode is during translation of LEA.

Re: [Qemu-devel] [PATCH v2 41/60] target-i386: Create gen_lea_v_seg

2013-12-26 Thread Peter Maydell
On 29 November 2013 03:00, Richard Henderson wrote: > Add forgotten zero-extension in the TARGET_X86_64, !CODE64, ss32 case; > use this new function to implement gen_string_movl_A0_EDI, > gen_string_movl_A0_ESI, gen_add_A0_ds_seg. I'm afraid I can't figure out how this code matches up with the pr

[Qemu-devel] [PATCH v2 41/60] target-i386: Create gen_lea_v_seg

2013-11-28 Thread Richard Henderson
Add forgotten zero-extension in the TARGET_X86_64, !CODE64, ss32 case; use this new function to implement gen_string_movl_A0_EDI, gen_string_movl_A0_ESI, gen_add_A0_ds_seg. Signed-off-by: Richard Henderson --- target-i386/translate.c | 159 1 file