0001
0002 .globl getcc
0003 .type getcc,#function
0004 getcc:
0005 ldx [%o0 + PT_V9_TSTATE], %o1
0006 srlx %o1, 32, %o1
0007 and %o1, 0xf, %o1
0008 retl
0009 stx %o1, [%o0 + PT_V9_G1]
0010 .size getcc,.-getcc
0011
0012 .globl setcc
0013 .type setcc,#function
0014 setcc:
0015 ldx [%o0 + PT_V9_TSTATE], %o1
0016 ldx [%o0 + PT_V9_G1], %o2
0017 or %g0, %ulo(TSTATE_ICC), %o3
0018 sllx %o3, 32, %o3
0019 andn %o1, %o3, %o1
0020 sllx %o2, 32, %o2
0021 and %o2, %o3, %o2
0022 or %o1, %o2, %o1
0023 retl
0024 stx %o1, [%o0 + PT_V9_TSTATE]
0025 .size setcc,.-setcc