mirror of https://gitee.com/openkylin/qemu.git
Fix set_error return value, by Pierre d'Herbemont.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2367 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
90e950d17f
commit
46ea33974d
|
@ -478,7 +478,7 @@ static void set_idt(int n, unsigned int dpl)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ABI convention: after a syscall if there was an error the CF flag is set */
|
/* ABI convention: after a syscall if there was an error the CF flag is set */
|
||||||
static inline set_error(CPUX86State *env, int ret)
|
static inline void set_error(CPUX86State *env, int ret)
|
||||||
{
|
{
|
||||||
if(ret<0)
|
if(ret<0)
|
||||||
env->eflags = env->eflags | 0x1;
|
env->eflags = env->eflags | 0x1;
|
||||||
|
|
Loading…
Reference in New Issue