Lines Matching refs:reg1
14 .macro mte_switch_to_guest g_ctxt, h_ctxt, reg1
18 mrs \reg1, hcr_el2
19 tbz \reg1, #(HCR_ATA_SHIFT), .L__skip_switch\@
21 mrs_s \reg1, SYS_RGSR_EL1
22 str \reg1, [\h_ctxt, #CPU_RGSR_EL1]
23 mrs_s \reg1, SYS_GCR_EL1
24 str \reg1, [\h_ctxt, #CPU_GCR_EL1]
26 ldr \reg1, [\g_ctxt, #CPU_RGSR_EL1]
27 msr_s SYS_RGSR_EL1, \reg1
28 ldr \reg1, [\g_ctxt, #CPU_GCR_EL1]
29 msr_s SYS_GCR_EL1, \reg1
34 .macro mte_switch_to_hyp g_ctxt, h_ctxt, reg1
38 mrs \reg1, hcr_el2
39 tbz \reg1, #(HCR_ATA_SHIFT), .L__skip_switch\@
41 mrs_s \reg1, SYS_RGSR_EL1
42 str \reg1, [\g_ctxt, #CPU_RGSR_EL1]
43 mrs_s \reg1, SYS_GCR_EL1
44 str \reg1, [\g_ctxt, #CPU_GCR_EL1]
46 ldr \reg1, [\h_ctxt, #CPU_RGSR_EL1]
47 msr_s SYS_RGSR_EL1, \reg1
48 ldr \reg1, [\h_ctxt, #CPU_GCR_EL1]
49 msr_s SYS_GCR_EL1, \reg1
58 .macro mte_switch_to_guest g_ctxt, h_ctxt, reg1
61 .macro mte_switch_to_hyp g_ctxt, h_ctxt, reg1