mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 00:35:31 +00:00
Add Zhaoxin processor support
CPU Vendor ID "Shanghai" and "CentaurHauls" belongs to Zhaoxin. Background: Shanghai Zhaoxin Semiconductor Co., Ltd ("Zhaoxin") , established in 2013, headquartered in Zhangjiang, Shanghai, China. Zhaoxin aims at providing general-purpose x86 processors. Related Zhaoxin Linux Kernel patch can be found at https://lore.kernel.org/lkml/01042674b2f741b2aed1f797359bdffb@zhaoxin.com Best regards.
This commit is contained in:
parent
fb4a406af2
commit
02de820008
|
@ -705,7 +705,7 @@ SDL_GetCPUCacheLineSize(void)
|
||||||
const char *cpuType = SDL_GetCPUType();
|
const char *cpuType = SDL_GetCPUType();
|
||||||
int a, b, c, d;
|
int a, b, c, d;
|
||||||
(void) a; (void) b; (void) c; (void) d;
|
(void) a; (void) b; (void) c; (void) d;
|
||||||
if (SDL_strcmp(cpuType, "GenuineIntel") == 0) {
|
if (SDL_strcmp(cpuType, "GenuineIntel") == 0 || SDL_strcmp(cpuType, "CentaurHauls") == 0 || SDL_strcmp(cpuType, " Shanghai ") == 0) {
|
||||||
cpuid(0x00000001, a, b, c, d);
|
cpuid(0x00000001, a, b, c, d);
|
||||||
return (((b >> 8) & 0xff) * 8);
|
return (((b >> 8) & 0xff) * 8);
|
||||||
} else if (SDL_strcmp(cpuType, "AuthenticAMD") == 0 || SDL_strcmp(cpuType, "HygonGenuine") == 0) {
|
} else if (SDL_strcmp(cpuType, "AuthenticAMD") == 0 || SDL_strcmp(cpuType, "HygonGenuine") == 0) {
|
||||||
|
|
Loading…
Reference in a new issue