Re: [Qemu-devel] [PATCH] x86: Fixed incorrect segment base address addition

2012-07-02 Thread Vitaly Chipounov
Max, On 02.07.2012 17:18, Max Filippov wrote: > On Mon, Jul 2, 2012 at 2:29 PM, Vitaly Chipounov > wrote: >> An instruction with address and segment size override triggers the bug. >> inc dword ptr gs:260h[ebx*4] gets incorrectly translated to: >> (uint32_t)(gs.base + ebx * 4 + 0x260) >> instead

Re: [Qemu-devel] [PATCH] x86: Fixed incorrect segment base address addition

2012-07-02 Thread Max Filippov
On Mon, Jul 2, 2012 at 2:29 PM, Vitaly Chipounov wrote: > An instruction with address and segment size override triggers the bug. > inc dword ptr gs:260h[ebx*4] gets incorrectly translated to: > (uint32_t)(gs.base + ebx * 4 + 0x260) > instead of > gs.base + (uint32_t)(ebx * 4 + 0x260) Do I unders

[Qemu-devel] [PATCH] x86: Fixed incorrect segment base address addition

2012-07-02 Thread Vitaly Chipounov
An instruction with address and segment size override triggers the bug. inc dword ptr gs:260h[ebx*4] gets incorrectly translated to: (uint32_t)(gs.base + ebx * 4 + 0x260) instead of gs.base + (uint32_t)(ebx * 4 + 0x260) Signed-off-by: Vitaly Chipounov --- target-i386/translate.c |2 +- 1 fil