qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/3] target-i386: get CPL from SS.DPL


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 3/3] target-i386: get CPL from SS.DPL
Date: Wed, 28 May 2014 13:26:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Il 27/05/2014 22:30, Bandan Das ha scritto:
@@ -996,15 +995,14 @@ static inline void cpu_x86_load_seg_cache(CPUX86State 
*env,
 #endif
             {
                 /* legacy / compatibility case */
-                if (!(env->cr[0] & CR0_PE_MASK))
-                    cpl = 0;
-                else if (env->eflags & VM_MASK)
-                    cpl = 3;
Trying to understand this thing, !(env->cr[0] & CR0_PE_MASK) is real mode, and 
what
is env->eflags & VM_MASK ?

It's vm86 mode.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]