| 398 | } |
| 399 | |
| 400 | FEXCore::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 |
| 419 | FEXCore::CPUID::FunctionResults CPUIDEmu::Function_01h(uint32_t Leaf) const { |
nothing calls this directly
no outgoing calls
no test coverage detected