Hi, Tiezhu,
On Mon, Oct 9, 2023 at 9:03 PM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:
Implement arch-specific init_orc_entry(), reg_name(), orc_type_name(),
print_reg() and orc_print_dump(), then set BUILD_ORC as y to build the
orc related files.
+#define ORC_REG_SP 2There is no BP register for LoongArch, so I think all 'BP' should be
+#define ORC_REG_BP 3
'FP' in this patch.
+#define ORC_REG_MAX 4
+struct orc_entry {
+ s16 sp_offset;
+ s16 bp_offset;
+ s16 ra_offset;
+ unsigned int sp_reg:4;
+ unsigned int bp_reg:4;
+ unsigned int ra_reg:4;
+ unsigned int type:3;
+ unsigned int signal:1;
+};