Add new CPU architecture: alpha

This commit is contained in:
Faisal Salman
2025-07-21 11:43:26 +07:00
parent c9d008e97a
commit 088383b9bd
4 changed files with 24 additions and 6 deletions

View File

@@ -166,6 +166,7 @@ export const BrowserType: Readonly<{
}>;
export const CPU: Readonly<{
'68K': "68k";
ALPHA: "alpha";
ARM: "arm";
ARM_64: "arm64";
ARM_HF: "armhf";

View File

@@ -175,6 +175,7 @@ const BrowserType = Object.freeze({
const CPU = Object.freeze({
'68K': '68k',
ALPHA: 'alpha',
ARM : 'arm',
ARM_64: 'arm64',
ARM_HF: 'armhf',

View File

@@ -536,15 +536,15 @@
/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i
], [[ARCHITECTURE, 'arm']], [
/((ppc|powerpc)(64)?)( mac|;|\))/i // PowerPC
], [[ARCHITECTURE, /ower/, EMPTY, lowerize]], [
/ sun4\w[;\)]/i // SPARC
], [[ARCHITECTURE, 'sparc']], [
/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i
// IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC
], [[ARCHITECTURE, lowerize]]
/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,
/((ppc|powerpc)(64)?)( mac|;|\))/i, // PowerPC
/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i // Alpha
], [[ARCHITECTURE, /ower/, EMPTY, lowerize]], [
/winnt.+\[axp/i
], [[ARCHITECTURE, 'alpha']]
],
device : [[