mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
CPUDetect: improve win/arm64 support
read brand_string on macos/arm64 remove unused flags report family/model info instead of vendor name
This commit is contained in:
parent
e4ff49769c
commit
76b4318b88
9 changed files with 422 additions and 229 deletions
|
@ -92,7 +92,31 @@ class x64EmitterTest : public testing::Test
|
|||
protected:
|
||||
void SetUp() override
|
||||
{
|
||||
memset(&cpu_info, 0x01, sizeof(cpu_info));
|
||||
// Ensure settings are constant no matter on which actual hardware the test runs.
|
||||
// Attempt to maximize complex code coverage. Note that this will miss some paths.
|
||||
cpu_info.vendor = CPUVendor::Intel;
|
||||
cpu_info.cpu_id = "GenuineIntel";
|
||||
cpu_info.model_name = "Unknown";
|
||||
cpu_info.HTT = true;
|
||||
cpu_info.num_cores = 8;
|
||||
cpu_info.bSSE3 = true;
|
||||
cpu_info.bSSSE3 = true;
|
||||
cpu_info.bSSE4_1 = true;
|
||||
cpu_info.bSSE4_2 = true;
|
||||
cpu_info.bLZCNT = true;
|
||||
cpu_info.bAVX = true;
|
||||
cpu_info.bBMI1 = true;
|
||||
cpu_info.bBMI2 = true;
|
||||
cpu_info.bBMI2FastParallelBitOps = true;
|
||||
cpu_info.bFMA = true;
|
||||
cpu_info.bFMA4 = true;
|
||||
cpu_info.bAES = true;
|
||||
cpu_info.bMOVBE = true;
|
||||
cpu_info.bFlushToZero = true;
|
||||
cpu_info.bAtom = false;
|
||||
cpu_info.bCRC32 = true;
|
||||
cpu_info.bSHA1 = true;
|
||||
cpu_info.bSHA2 = true;
|
||||
|
||||
emitter.reset(new X64CodeBlock());
|
||||
emitter->AllocCodeSpace(4096);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue