lkml.org 
[lkml]   [2009]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [2.6.30-rc8 KVM] gcc 3.3 dies at emulate_2op_cl().
Tetsuo Handa wrote:
> Avi Kivity wrote:
>
>>> I think something is wrong with emulate_2op_cl() when compiled with gcc 3.3.5 .
>>>
>> This is on i386, not x86_64, yes?
>>
>>
> Yes. Building "make allmodconfig" using Debian Sarge on i686 machine.
>

Does the attached patch help?

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c
index 22c765d..01717a5 100644
--- a/arch/x86/kvm/x86_emulate.c
+++ b/arch/x86/kvm/x86_emulate.c
@@ -451,7 +451,7 @@ static u32 group2_table[] = {
_PRE_EFLAGS("0", "5", "2") \
_op _suffix " %4,%1 \n" \
_POST_EFLAGS("0", "5", "2") \
- : "=m" (_eflags), "+r" (_dstv), "=&r" (_tmp) \
+ : "=m" (_eflags), "+rm" (_dstv), "=&r" (_tmp) \
: "c" (_clv) , "r" (_srcv), "i" (EFLAGS_MASK) \
); \
\
\
 
 \ /
  Last update: 2009-06-07 10:33    [W:0.026 / U:90.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site