17 .macro sr_op sym, op_sym, op_byte, sr
21 .byte LOW__SR, \sr, \op_byte
25 .macro test_sr_op sym, mask, op, op_byte, sr
29 sr_op \sym, \op, \op_byte, \sr
33 sr_op \sym, \op, \op_byte, \sr
45 .macro test_sr_mask sr, sym, mask
47 test_sr_op \sym, \mask & 1, rsr, HI_RSR, \sr
48 test_sr_op \sym, \mask & 2, wsr, HI_WSR, \sr
49 test_sr_op \sym, \mask & 4, xsr, HI_XSR, \sr
53 .macro test_sr sr, conf
54 test_sr_mask \sr, \conf, 7
61 test_sr_mask /*acchi*/17, 0, 0
62 test_sr_mask /*acclo*/16, 0, 0
65 #if XCHAL_HAVE_S32C1I && XCHAL_HW_VERSION >= 230000
68 test_sr_mask /*atomctl*/99, 0, 0
71 #if XCHAL_HAVE_BOOLEANS
74 test_sr_mask /*br*/4, 0, 0
77 test_sr_mask /*cacheattr*/98, 0, 0
83 test_sr_mask /*ccompare0*/240, 0, 0
84 test_sr_mask /*ccount*/234, 0, 0
90 test_sr_mask /*cpenable*/224, 0, 0
98 test_sr_mask debugcause, 1, 1
100 test_sr_mask /*dbreaka0*/144, 0, 0
101 test_sr_mask /*dbreakc0*/160, 0, 0
102 test_sr_mask /*debugcause*/233, 0, 0
107 #if XCHAL_HAVE_PTP_MMU
110 test_sr_mask /*dtlbcfg*/92, 0, 0
115 #if XCHAL_NUM_INTLEVELS > 1
119 test_sr_mask /*epc2*/178, 0, 0
120 test_sr_mask /*eps2*/194, 0, 0
126 #if XCHAL_NUM_INTLEVELS > 1
129 test_sr_mask /*excsave2*/210, 0, 0
137 test_sr ibreakenable, 1
140 test_sr icountlevel, 1
142 test_sr_mask /*ibreaka0*/128, 0, 0
143 test_sr_mask /*ibreakenable*/96, 0, 0
144 test_sr_mask /*icount*/236, 0, 0
145 test_sr_mask /*icountlevel*/237, 0, 0
148 test_sr_mask /*intclear*/227, 0, 2
149 test_sr_mask /*interrupt*/226, 0, 3
152 #if XCHAL_HAVE_PTP_MMU
155 test_sr_mask /*itlbcfg*/91, 0, 0
163 test_sr_mask /*lbeg*/0, 0, 0
164 test_sr_mask /*lcount*/2, 0, 0
165 test_sr_mask /*lend*/1, 0, 0
168 #if XCHAL_HAVE_ABSOLUTE_LITERALS
171 test_sr_mask /*litbase*/5, 0, 0
177 test_sr_mask /*m0*/32, 0, 0
180 #if XCHAL_HW_VERSION >= 250000
181 test_sr_mask /*memctl*/97, 0, 7
183 test_sr_mask /*memctl*/97, 0, 0
186 #if XCHAL_NUM_MISC_REGS
189 test_sr_mask /*misc0*/244, 0, 0
192 #if XCHAL_HAVE_PREFETCH
195 test_sr_mask /*prefctl*/40, 0, 0
199 test_sr_mask /*prid*/235, 0, 1
201 test_sr_mask /*prid*/235, 0, 0
206 #if XCHAL_HAVE_PTP_MMU
210 test_sr_mask /*ptevaddr*/83, 0, 0
211 test_sr_mask /*rasid*/90, 0, 0
216 #if XCHAL_HAVE_S32C1I
219 test_sr_mask /*scompare1*/12, 0, 0
222 #if XCHAL_HAVE_VECBASE
224 movi a2, XCHAL_VECBASE_RESET_VADDR
227 test_sr_mask /*vecbase*/231, 0, 0
230 #if XCHAL_HAVE_WINDOWED
231 test_sr windowbase, 1
232 test_sr windowstart, 1
234 test_sr_mask /*windowbase*/72, 0, 0
235 test_sr_mask /*windowstart*/73, 0, 0