Ignore:
Timestamp:
2009-04-14T15:47:54Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2bf4936
Parents:
4ee4046
Message:

Replace the deprecated Bicc instructions with proper Bcc instructions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/trap/trap_table.S

    r4ee4046 r577b531  
    479479        rdpr %tl, %g3
    480480        cmp %g3, 1
    481         be 1f
     481        be %xcc, 1f
    482482        nop
    4834830:      ba 0b                                   ! this is for debugging, if we ever get here
     
    500500
    501501        andcc %g3, TSTATE_PRIV_BIT, %g0         ! if this trap came from the privileged mode...
    502         bnz 0f                                  ! ...skip setting of kernel stack and primary context
     502        bnz %xcc, 0f                            ! ...skip setting of kernel stack and primary context
    503503        nop
    504504       
     
    673673        rdpr %cwp, %l1
    674674        cmp %l0, %l1
    675         bz 0f                           ! CWP is ok
     675        bz %xcc, 0f                     ! CWP is ok
    676676        nop
    677677
     
    713713        rdpr %tstate, %g1
    714714        andcc %g1, TSTATE_PRIV_BIT, %g0         ! if we are not returning to userspace...,
    715         bnz 1f                                  ! ...skip restoring userspace windows
     715        bnz %xcc, 1f                            ! ...skip restoring userspace windows
    716716        nop
    717717.endif
     
    750750        clr %g4
    7517510:      andcc %g7, UWB_ALIGNMENT - 1, %g0       ! alignment check
    752         bz 0f                                   ! %g7 is UWB_ALIGNMENT-aligned, no more windows to refill
     752        bz %xcc, 0f                             ! %g7 is UWB_ALIGNMENT-aligned, no more windows to refill
    753753        nop
    754754
     
    786786        add %g4, %g2, %g2
    787787        cmp %g2, NWINDOWS - 2
    788         bg 2f                                   ! fix the CANRESTORE=NWINDOWS-1 anomaly
     788        bg %xcc, 2f                             ! fix the CANRESTORE=NWINDOWS-1 anomaly
    789789        mov NWINDOWS - 2, %g1                   ! use dealy slot for both cases
    790790        sub %g1, %g2, %g1
Note: See TracChangeset for help on using the changeset viewer.