38#if defined(__FIX_LEON3FT_TN0018)
42#define CCTRL_IP_BIT 15
50.macro TN0018_WAIT_IFLUSH out1 out2
52 ! wait
for pending iflush to complete
53 lda [%g0] ASI_CTRL, \out1
54 srl \out1, CCTRL_IP_BIT, \out2
57 andn \out1, CCTRL_ICS, \out2
61.macro TN0018_WRITE_PSR src
72.macro TN0018_FIX in1 in2
73 .align 0x20 ! align the sta
for performance
74 sta \in2, [%g0] ASI_CTRL ! disable icache
75 nop ! delay
for sta to have effect on rett
76 or %l1, %l1, %l1 ! delay +
catch rf parity error on l1
77 or %l2, %l2, %l2 ! delay +
catch rf parity error on l2
78 sta \in1, [%g0] ASI_CTRL ! re-enable icache after rett
79 nop ! delay ensures insn after gets cached
84.macro TN0018_WAIT_IFLUSH out1 out2
87.macro TN0018_WRITE_PSR src
90.macro TN0018_FIX in1 in2
#define nop()
Definition: sparc.h:281