MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / Function_0h

Method Function_0h

FEXCore/Source/Interface/Core/CPUID.cpp:400–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400FEXCore::CPUID::FunctionResults CPUIDEmu::Function_0h(uint32_t Leaf) const {
401 FEXCore::CPUID::FunctionResults Res {};
402
403 // EBX, EDX, ECX become the manufacturer id string
404#ifdef CPUID_AMD
405 Res.eax = 0x0D; // Let's say we are a Zen+
406 Res.ebx = CPUID_VENDOR_AMD1;
407 Res.edx = CPUID_VENDOR_AMD2;
408 Res.ecx = CPUID_VENDOR_AMD3;
409#else
410 Res.eax = 0x16; // Let's say we are a Skylake
411 Res.ebx = CPUID_VENDOR_INTEL1;
412 Res.edx = CPUID_VENDOR_INTEL2;
413 Res.ecx = CPUID_VENDOR_INTEL3;
414#endif
415 return Res;
416}
417
418// Processor Info and Features bits
419FEXCore::CPUID::FunctionResults CPUIDEmu::Function_01h(uint32_t Leaf) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected