Skip to content

Commit

Permalink
fix: fix cannot run on X Elite
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Oct 4, 2024
1 parent ecc106b commit 6cc6a27
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions scripts/cpuinfo.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
diff --git a/include/cpuinfo.h b/include/cpuinfo.h
index 8bb1db4..d3dbb1d 100644
--- a/include/cpuinfo.h
+++ b/include/cpuinfo.h
@@ -520,6 +520,8 @@ enum cpuinfo_uarch {
cpuinfo_uarch_falkor = 0x00400103,
/** Qualcomm Saphira. */
cpuinfo_uarch_saphira = 0x00400104,
+ /** Qualcomm Oryon. */
+ cpuinfo_uarch_oryon = 0x00400105,

/** Nvidia Denver. */
cpuinfo_uarch_denver = 0x00500100,
@@ -702,7 +704,7 @@ struct cpuinfo_cluster {
uint64_t frequency;
};

-#define CPUINFO_PACKAGE_NAME_MAX 48
+#define CPUINFO_PACKAGE_NAME_MAX 64

struct cpuinfo_package {
/** SoC or processor chip model name */
diff --git a/src/arm/windows/init-by-logical-sys-info.c b/src/arm/windows/init-by-logical-sys-info.c
index 6ce6efe..d3c2279 100644
--- a/src/arm/windows/init-by-logical-sys-info.c
Expand Down Expand Up @@ -60,19 +82,6 @@ index 6ce6efe..d3c2279 100644
return true;
}

diff --git a/include/cpuinfo.h b/include/cpuinfo.h
index 387611c..e1c0a4a 100644
--- a/include/cpuinfo.h
+++ b/include/cpuinfo.h
@@ -520,6 +520,8 @@ enum cpuinfo_uarch {
cpuinfo_uarch_falkor = 0x00400103,
/** Qualcomm Saphira. */
cpuinfo_uarch_saphira = 0x00400104,
+ /** Qualcomm Oryon. */
+ cpuinfo_uarch_oryon = 0x00400105,

/** Nvidia Denver. */
cpuinfo_uarch_denver = 0x00500100,
diff --git a/src/arm/windows/init.c b/src/arm/windows/init.c
index de2f6cc..fa6a9f3 100644
--- a/src/arm/windows/init.c
Expand Down

0 comments on commit 6cc6a27

Please sign in to comment.