• Michael Neuling's avatar
    powerpc: Add new instructions for transactional memory · 14c39a4c
    Michael Neuling authored
    Here we define the new instructions we need for transactional memory in the
    kernel.  This is so we can support compiling with binutils that don't support
    the new transactional memory instructions.
    
    Transactional memory results in two sets of architected state (GPRs/VSRs
    etc).
    
    treclaim allows us to read the checkpointed state (from the tbegin) so that we
    can store it away on a context switch.  It does this by overwriting the exiting
    architected state, so you have to save that away before you treclaim.  treclaim
    will also abort a transaction, so you can give a register value which contains
    an abort reason.
    
    trecheckpoint allows us to inject into the checkpointed state as if it were at
    the tbegin.  It does this by copying the current architected state into the
    checkpointed state.
    Signed-off-by: default avatarMatt Evans <matt@ozlabs.org>
    Signed-off-by: default avatarMichael Neuling <mikey@neuling.org>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    14c39a4c
ppc-opcode.h 10.6 KB