Skip to content

Commit

Permalink
[AArch64] Backing up the 32-bit architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Jan 27, 2024
1 parent 13525f9 commit c892a9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 277 deletions.
266 changes: 2 additions & 264 deletions aarch64/corefreqk.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,6 @@ static void Stop_GenericMachine(void *arg) ;
static void InitTimer_GenericMachine(unsigned int cpu) ;
/* [Void] */
#define _Void_Signature {.ExtFamily=0x00, .Family=0x0, .ExtModel=0x0, .Model=0x0}
#define _Cortex_A5 {.ExtFamily=0xc0, .Family=0x5, .ExtModel=0x0, .Model=0x5}
#define _Cortex_A7 {.ExtFamily=0xc0, .Family=0x7, .ExtModel=0x0, .Model=0x7}
#define _Cortex_A9 {.ExtFamily=0xc0, .Family=0x9, .ExtModel=0x0, .Model=0x9}
#define _Cortex_A15 {.ExtFamily=0xc0, .Family=0xf, .ExtModel=0x0, .Model=0xf}
#define _Cortex_A17 {.ExtFamily=0xc0, .Family=0xe, .ExtModel=0x0, .Model=0xe}
#define _Cortex_A32 {.ExtFamily=0xd0, .Family=0x1, .ExtModel=0x0, .Model=0x6}
#define _Cortex_A34 {.ExtFamily=0xd0, .Family=0x2, .ExtModel=0x0, .Model=0x8}
#define _Cortex_A35 {.ExtFamily=0xd0, .Family=0x4, .ExtModel=0x0, .Model=0xa}
#define _Cortex_A510 {.ExtFamily=0xd4, .Family=0x6, .ExtModel=0x0, .Model=0x0}
Expand All @@ -371,10 +365,6 @@ static void InitTimer_GenericMachine(unsigned int cpu) ;
#define _Cortex_A78 {.ExtFamily=0xd4, .Family=0x1, .ExtModel=0x2, .Model=0x1}
#define _Cortex_A78AE {.ExtFamily=0xd4, .Family=0x2, .ExtModel=0x2, .Model=0x2}
#define _Cortex_A78C {.ExtFamily=0xd4, .Family=0xb, .ExtModel=0x2, .Model=0x4}
#define _Cortex_R4 {.ExtFamily=0xc1, .Family=0x4, .ExtModel=0x1, .Model=0x4}
#define _Cortex_R5 {.ExtFamily=0xc1, .Family=0x5, .ExtModel=0x1, .Model=0x5}
#define _Cortex_R52 {.ExtFamily=0xd1, .Family=0x3, .ExtModel=0x1, .Model=0x3}
#define _Cortex_R52Plus {.ExtFamily=0xd1, .Family=0x6, .ExtModel=0x1, .Model=0x6}
#define _Cortex_R82 {.ExtFamily=0xd1, .Family=0x5, .ExtModel=0x0, .Model=0x0}
#define _Cortex_X1 {.ExtFamily=0xd4, .Family=0x4, .ExtModel=0x2, .Model=0x3}
#define _Cortex_X1C {.ExtFamily=0xd4, .Family=0xc, .ExtModel=0x2, .Model=0x5}
Expand All @@ -395,9 +385,7 @@ static struct pci_device_id PCI_Void_ids[] = {
};

static char *CodeName[CODENAMES] = {
[ ARMv1] = "ARMv1",
[ ARMv7_R] = "ARMv7-R",
[ ARMv7_A] = "ARMv7-A",
[ ARM64] = "AArch64",
[ ARMv8_R] = "ARMv8-R",
[ ARMv8_A] = "ARMv8-A",
[ARMv8_2_A] = "ARMv8.2-A",
Expand All @@ -411,13 +399,7 @@ static char *CodeName[CODENAMES] = {
[ ARMv9_5] = "ARMv9.5"
};

#define Arch_Misc_Processor {.Brand = ZLIST(NULL), .CN = ARMv1}
#define Arch_Cortex_A5 {.Brand = ZLIST("Cortex-A5"), .CN = ARMv7_A}
#define Arch_Cortex_A7 {.Brand = ZLIST("Cortex-A7"), .CN = ARMv7_A}
#define Arch_Cortex_A9 {.Brand = ZLIST("Cortex-A9"), .CN = ARMv7_A}
#define Arch_Cortex_A15 {.Brand = ZLIST("Cortex-A15"), .CN = ARMv7_A}
#define Arch_Cortex_A17 {.Brand = ZLIST("Cortex-A17"), .CN = ARMv7_A}
#define Arch_Cortex_A32 {.Brand = ZLIST("Cortex-A32"), .CN = ARMv8_A}
#define Arch_Misc_Processor {.Brand = ZLIST(NULL), .CN = ARM64}
#define Arch_Cortex_A34 {.Brand = ZLIST("Cortex-A34"), .CN = ARMv8_A}
#define Arch_Cortex_A35 {.Brand = ZLIST("Cortex-A35"), .CN = ARMv8_A}
#define Arch_Cortex_A510 {.Brand = ZLIST("Cortex-A510"), .CN = ARMv9_A}
Expand All @@ -439,10 +421,6 @@ static char *CodeName[CODENAMES] = {
#define Arch_Cortex_A78 {.Brand = ZLIST("Cortex-A78"), .CN = ARMv8_2_A}
#define Arch_Cortex_A78AE {.Brand = ZLIST("Cortex-A78AE"), .CN = ARMv8_2_A}
#define Arch_Cortex_A78C {.Brand = ZLIST("Cortex-A78C"), .CN = ARMv8_2_A}
#define Arch_Cortex_R4 {.Brand = ZLIST("Cortex-R4"), .CN = ARMv7_R}
#define Arch_Cortex_R5 {.Brand = ZLIST("Cortex-R5"), .CN = ARMv7_R}
#define Arch_Cortex_R52 {.Brand = ZLIST("Cortex-R52"), .CN = ARMv8_R}
#define Arch_Cortex_R52Plus {.Brand = ZLIST("Cortex-R52+"), .CN = ARMv8_R}
#define Arch_Cortex_R82 {.Brand = ZLIST("Cortex-R82"), .CN = ARMv8_R}
#define Arch_Cortex_X1 {.Brand = ZLIST("Cortex-X1"), .CN = ARMv8_2_A}
#define Arch_Cortex_X1C {.Brand = ZLIST("Cortex-X1C"), .CN = ARMv8_2_A}
Expand Down Expand Up @@ -519,150 +497,6 @@ static ARCH Arch[ARCHITECTURES] = {
.SystemDriver = VOID_Driver,
.Architecture = Arch_Misc_Processor
},
[Cortex_A5] = {
.Signature = _Cortex_A5,
.Query = Query_GenericMachine,
.Update = PerCore_GenericMachine,
.Start = Start_GenericMachine,
.Stop = Stop_GenericMachine,
.Exit = NULL,
.Timer = InitTimer_GenericMachine,
.BaseClock = BaseClock_GenericMachine,
.ClockMod = NULL,
.TurboClock = NULL,
.thermalFormula = THERMAL_FORMULA_NONE,
.voltageFormula = VOLTAGE_FORMULA_NONE,
.powerFormula = POWER_FORMULA_NONE,
.PCI_ids = PCI_Void_ids,
.Uncore = {
.Start = NULL,
.Stop = NULL,
.ClockMod = NULL
},
.Specific = Misc_Specific_Processor,
.SystemDriver = VOID_Driver,
.Architecture = Arch_Cortex_A5
},
[Cortex_A7] = {
.Signature = _Cortex_A7,
.Query = Query_GenericMachine,
.Update = PerCore_GenericMachine,
.Start = Start_GenericMachine,
.Stop = Stop_GenericMachine,
.Exit = NULL,
.Timer = InitTimer_GenericMachine,
.BaseClock = BaseClock_GenericMachine,
.ClockMod = NULL,
.TurboClock = NULL,
.thermalFormula = THERMAL_FORMULA_NONE,
.voltageFormula = VOLTAGE_FORMULA_NONE,
.powerFormula = POWER_FORMULA_NONE,
.PCI_ids = PCI_Void_ids,
.Uncore = {
.Start = NULL,
.Stop = NULL,
.ClockMod = NULL
},
.Specific = Misc_Specific_Processor,
.SystemDriver = VOID_Driver,
.Architecture = Arch_Cortex_A7
},
[Cortex_A9] = {
.Signature = _Cortex_A9,
.Query = Query_GenericMachine,
.Update = PerCore_GenericMachine,
.Start = Start_GenericMachine,
.Stop = Stop_GenericMachine,
.Exit = NULL,
.Timer = InitTimer_GenericMachine,
.BaseClock = BaseClock_GenericMachine,
.ClockMod = NULL,
.TurboClock = NULL,
.thermalFormula = THERMAL_FORMULA_NONE,
.voltageFormula = VOLTAGE_FORMULA_NONE,
.powerFormula = POWER_FORMULA_NONE,
.PCI_ids = PCI_Void_ids,
.Uncore = {
.Start = NULL,
.Stop = NULL,
.ClockMod = NULL
},
.Specific = Misc_Specific_Processor,
.SystemDriver = VOID_Driver,
.Architecture = Arch_Cortex_A9
},
[Cortex_A15] = {
.Signature = _Cortex_A15,
.Query = Query_GenericMachine,
.Update = PerCore_GenericMachine,
.Start = Start_GenericMachine,
.Stop = Stop_GenericMachine,
.Exit = NULL,
.Timer = InitTimer_GenericMachine,
.BaseClock = BaseClock_GenericMachine,
.ClockMod = NULL,
.TurboClock = NULL,
.thermalFormula = THERMAL_FORMULA_NONE,
.voltageFormula = VOLTAGE_FORMULA_NONE,
.powerFormula = POWER_FORMULA_NONE,
.PCI_ids = PCI_Void_ids,
.Uncore = {
.Start = NULL,
.Stop = NULL,
.ClockMod = NULL
},
.Specific = Misc_Specific_Processor,
.SystemDriver = VOID_Driver,
.Architecture = Arch_Cortex_A15
},
[Cortex_A17] = {
.Signature = _Cortex_A17,
.Query = Query_GenericMachine,
.Update = PerCore_GenericMachine,
.Start = Start_GenericMachine,
.Stop = Stop_GenericMachine,
.Exit = NULL,
.Timer = InitTimer_GenericMachine,
.BaseClock = BaseClock_GenericMachine,
.ClockMod = NULL,
.TurboClock = NULL,
.thermalFormula = THERMAL_FORMULA_NONE,
.voltageFormula = VOLTAGE_FORMULA_NONE,
.powerFormula = POWER_FORMULA_NONE,
.PCI_ids = PCI_Void_ids,
.Uncore = {
.Start = NULL,
.Stop = NULL,
.ClockMod = NULL
},
.Specific = Misc_Specific_Processor,
.SystemDriver = VOID_Driver,
.Architecture = Arch_Cortex_A17
},
[Cortex_A32] = {
.Signature = _Cortex_A32,
.Query = Query_GenericMachine,
.Update = PerCore_GenericMachine,
.Start = Start_GenericMachine,
.Stop = Stop_GenericMachine,
.Exit = NULL,
.Timer = InitTimer_GenericMachine,
.BaseClock = BaseClock_GenericMachine,
.ClockMod = NULL,
.TurboClock = NULL,
.thermalFormula = THERMAL_FORMULA_NONE,
.voltageFormula = VOLTAGE_FORMULA_NONE,
.powerFormula = POWER_FORMULA_NONE,
.PCI_ids = PCI_Void_ids,
.Uncore = {
.Start = NULL,
.Stop = NULL,
.ClockMod = NULL
},
.Specific = Misc_Specific_Processor,
.SystemDriver = VOID_Driver,
.Architecture = Arch_Cortex_A32
},
[Cortex_A34] = {
.Signature = _Cortex_A34,
.Query = Query_GenericMachine,
Expand Down Expand Up @@ -1167,102 +1001,6 @@ static ARCH Arch[ARCHITECTURES] = {
.SystemDriver = VOID_Driver,
.Architecture = Arch_Cortex_A78C
},
[Cortex_R4] = {
.Signature = _Cortex_R4,
.Query = Query_GenericMachine,
.Update = PerCore_GenericMachine,
.Start = Start_GenericMachine,
.Stop = Stop_GenericMachine,
.Exit = NULL,
.Timer = InitTimer_GenericMachine,
.BaseClock = BaseClock_GenericMachine,
.ClockMod = NULL,
.TurboClock = NULL,
.thermalFormula = THERMAL_FORMULA_NONE,
.voltageFormula = VOLTAGE_FORMULA_NONE,
.powerFormula = POWER_FORMULA_NONE,
.PCI_ids = PCI_Void_ids,
.Uncore = {
.Start = NULL,
.Stop = NULL,
.ClockMod = NULL
},
.Specific = Misc_Specific_Processor,
.SystemDriver = VOID_Driver,
.Architecture = Arch_Cortex_R4
},
[Cortex_R5] = {
.Signature = _Cortex_R5,
.Query = Query_GenericMachine,
.Update = PerCore_GenericMachine,
.Start = Start_GenericMachine,
.Stop = Stop_GenericMachine,
.Exit = NULL,
.Timer = InitTimer_GenericMachine,
.BaseClock = BaseClock_GenericMachine,
.ClockMod = NULL,
.TurboClock = NULL,
.thermalFormula = THERMAL_FORMULA_NONE,
.voltageFormula = VOLTAGE_FORMULA_NONE,
.powerFormula = POWER_FORMULA_NONE,
.PCI_ids = PCI_Void_ids,
.Uncore = {
.Start = NULL,
.Stop = NULL,
.ClockMod = NULL
},
.Specific = Misc_Specific_Processor,
.SystemDriver = VOID_Driver,
.Architecture = Arch_Cortex_R5
},
[Cortex_R52] = {
.Signature = _Cortex_R52,
.Query = Query_GenericMachine,
.Update = PerCore_GenericMachine,
.Start = Start_GenericMachine,
.Stop = Stop_GenericMachine,
.Exit = NULL,
.Timer = InitTimer_GenericMachine,
.BaseClock = BaseClock_GenericMachine,
.ClockMod = NULL,
.TurboClock = NULL,
.thermalFormula = THERMAL_FORMULA_NONE,
.voltageFormula = VOLTAGE_FORMULA_NONE,
.powerFormula = POWER_FORMULA_NONE,
.PCI_ids = PCI_Void_ids,
.Uncore = {
.Start = NULL,
.Stop = NULL,
.ClockMod = NULL
},
.Specific = Misc_Specific_Processor,
.SystemDriver = VOID_Driver,
.Architecture = Arch_Cortex_R52
},
[Cortex_R52Plus] = {
.Signature = _Cortex_R52Plus,
.Query = Query_GenericMachine,
.Update = PerCore_GenericMachine,
.Start = Start_GenericMachine,
.Stop = Stop_GenericMachine,
.Exit = NULL,
.Timer = InitTimer_GenericMachine,
.BaseClock = BaseClock_GenericMachine,
.ClockMod = NULL,
.TurboClock = NULL,
.thermalFormula = THERMAL_FORMULA_NONE,
.voltageFormula = VOLTAGE_FORMULA_NONE,
.powerFormula = POWER_FORMULA_NONE,
.PCI_ids = PCI_Void_ids,
.Uncore = {
.Start = NULL,
.Stop = NULL,
.ClockMod = NULL
},
.Specific = Misc_Specific_Processor,
.SystemDriver = VOID_Driver,
.Architecture = Arch_Cortex_R52Plus
},
[Cortex_R82] = {
.Signature = _Cortex_R82,
.Query = Query_GenericMachine,
Expand Down
14 changes: 1 addition & 13 deletions aarch64/coretypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ enum CRC_MANUFACTURER

enum CODENAME
{
ARMv1,
ARMv7_R,
ARMv7_A,
ARM64,
ARMv8_R,
ARMv8_A,
ARMv8_2_A,
Expand All @@ -59,12 +57,6 @@ enum CODENAME
};

enum { GenuineArch = 0,
Cortex_A5,
Cortex_A7,
Cortex_A9,
Cortex_A15,
Cortex_A17,
Cortex_A32,
Cortex_A34,
Cortex_A35,
Cortex_A510,
Expand All @@ -86,10 +78,6 @@ enum { GenuineArch = 0,
Cortex_A78,
Cortex_A78AE,
Cortex_A78C,
Cortex_R4,
Cortex_R5,
Cortex_R52,
Cortex_R52Plus,
Cortex_R82,
Cortex_X1,
Cortex_X1C,
Expand Down

0 comments on commit c892a9d

Please sign in to comment.