Skip to content

Commit

Permalink
[AArch64] Instruction Set Attribute Register 3 ID_AA64ISAR3_EL1
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Dec 11, 2024
1 parent d7fa7ac commit d0ac57d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aarch64/arm_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

#define CPUPWRCTLR_EL1 sys_reg(0b11, 0b000, 0b1111, 0b0010, 0b111)
#define ID_AA64ISAR2_EL1 sys_reg(0b11, 0b000, 0b0000, 0b0110, 0b010)
#define ID_AA64ISAR3_EL1 sys_reg(0b11, 0b000, 0b0000, 0b0110, 0b011)
#define ID_AA64ISAR4_EL1 sys_reg(0b11, 0b000, 0b0000, 0b0110, 0b100)
#define ID_AA64MMFR2_EL1 sys_reg(0b11, 0b000, 0b0000, 0b0111, 0b010)
#define ID_AA64MMFR3_EL1 sys_reg(0b11, 0b000, 0b0000, 0b0111, 0b011)
#define ID_AA64SMFR0_EL1 sys_reg(0b11, 0b000, 0b0000, 0b0100, 0b101)
Expand Down Expand Up @@ -466,7 +468,11 @@ typedef union
FAMINMAX : 8-4,
TLBIW : 12-8,
PACM : 16-12,
RES0 : 64-16;
LSFE : 20-16,
OCCMO : 24-20,
LSUI : 28-24,
FPRCVT : 32-28,
RES0 : 64-32;
};
} AA64ISAR3;

Expand Down
2 changes: 2 additions & 0 deletions aarch64/corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ static void Query_Features(void *pArg)
volatile AA64ISAR0 isar0;
volatile AA64ISAR1 isar1;
volatile AA64ISAR2 isar2;
volatile AA64ISAR3 isar3;
volatile AA64MMFR0 mmfr0;
volatile AA64MMFR1 mmfr1;
volatile AA64MMFR2 mmfr2;
Expand Down Expand Up @@ -570,6 +571,7 @@ static void Query_Features(void *pArg)
);

isar2.value = SysRegRead(ID_AA64ISAR2_EL1);
isar3.value = SysRegRead(ID_AA64ISAR3_EL1);
mmfr2.value = SysRegRead(ID_AA64MMFR2_EL1);

iArg->Features->Info.Signature.Stepping = midr.Revision
Expand Down

0 comments on commit d0ac57d

Please sign in to comment.