Hi, ive got an Question about how to manipulate CPUID
the source to detect mmx is :
bool isMMXSupported()
{
int fSupported;
__asm
{
mov eax,1 // CPUID level 1
cpuid // EDX = feature flag
and edx,0x800000 // test bit 23 of feature flag
mov fSupported,edx // != 0 if MMX is supported
}
if (fSupported != 0)
return true;
else
return false;
}
And now my Question: How can I manipulate CPUID to
be MMX bit = 0 ?
Any help would be appreciated ...
Thanks in Advance.
the source to detect mmx is :
bool isMMXSupported()
{
int fSupported;
__asm
{
mov eax,1 // CPUID level 1
cpuid // EDX = feature flag
and edx,0x800000 // test bit 23 of feature flag
mov fSupported,edx // != 0 if MMX is supported
}
if (fSupported != 0)
return true;
else
return false;
}
And now my Question: How can I manipulate CPUID to
be MMX bit = 0 ?
Any help would be appreciated ...
Thanks in Advance.
You don't :]. I don't know of any way to fiddle with CPUID... your
best, if you're dealing with a single app, would be to track down the
CPUID call and fiddle with the actual code.
best, if you're dealing with a single app, would be to track down the
CPUID call and fiddle with the actual code.