mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 20:19:23 +00:00
Detect Apple M1 on Linux.
This commit is contained in:
parent
62450f4ed8
commit
8faef28e7d
1 changed files with 7 additions and 0 deletions
|
@ -208,6 +208,12 @@ static const id_part hisi_part[] = {
|
||||||
{ -1, nullptr },
|
{ -1, nullptr },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const id_part apple_part[] = {
|
||||||
|
{ 0x022, "M1" },
|
||||||
|
{ 0x023, "M1" },
|
||||||
|
{ -1, nullptr },
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
static const hw_impl hw_implementer[] = {
|
static const hw_impl hw_implementer[] = {
|
||||||
{ 0x41, arm_part, "ARM" },
|
{ 0x41, arm_part, "ARM" },
|
||||||
|
@ -221,6 +227,7 @@ static const hw_impl hw_implementer[] = {
|
||||||
{ 0x51, qcom_part, "Qualcomm" },
|
{ 0x51, qcom_part, "Qualcomm" },
|
||||||
{ 0x53, samsung_part, "Samsung" },
|
{ 0x53, samsung_part, "Samsung" },
|
||||||
{ 0x56, marvell_part, "Marvell" },
|
{ 0x56, marvell_part, "Marvell" },
|
||||||
|
{ 0x61, apple_part, "Apple" },
|
||||||
{ 0x66, faraday_part, "Faraday" },
|
{ 0x66, faraday_part, "Faraday" },
|
||||||
{ 0x69, intel_part, "Intel" }
|
{ 0x69, intel_part, "Intel" }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue