• Jordan Niethe's avatar
    powerpc sstep: Add support for prefixed load/stores · 50b80a12
    Jordan Niethe authored
    This adds emulation support for the following prefixed integer
    load/stores:
      * Prefixed Load Byte and Zero (plbz)
      * Prefixed Load Halfword and Zero (plhz)
      * Prefixed Load Halfword Algebraic (plha)
      * Prefixed Load Word and Zero (plwz)
      * Prefixed Load Word Algebraic (plwa)
      * Prefixed Load Doubleword (pld)
      * Prefixed Store Byte (pstb)
      * Prefixed Store Halfword (psth)
      * Prefixed Store Word (pstw)
      * Prefixed Store Doubleword (pstd)
      * Prefixed Load Quadword (plq)
      * Prefixed Store Quadword (pstq)
    
    the follow prefixed floating-point load/stores:
      * Prefixed Load Floating-Point Single (plfs)
      * Prefixed Load Floating-Point Double (plfd)
      * Prefixed Store Floating-Point Single (pstfs)
      * Prefixed Store Floating-Point Double (pstfd)
    
    and for the following prefixed VSX load/stores:
      * Prefixed Load VSX Scalar Doubleword (plxsd)
      * Prefixed Load VSX Scalar Single-Precision (plxssp)
      * Prefixed Load VSX Vector [0|1]  (plxv, plxv0, plxv1)
      * Prefixed Store VSX Scalar Doubleword (pstxsd)
      * Prefixed Store VSX Scalar Single-Precision (pstxssp)
      * Prefixed Store VSX Vector [0|1] (pstxv, pstxv0, pstxv1)
    Signed-off-by: default avatarJordan Niethe <jniethe5@gmail.com>
    Reviewed-by: default avatarBalamuruhan S <bala24@linux.ibm.com>
    [mpe: Use CONFIG_PPC64 not __powerpc64__, use get_op()]
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    Link: https://lore.kernel.org/r/20200506034050.24806-30-jniethe5@gmail.com
    50b80a12
sstep.c 74.1 KB