• Christophe Leroy's avatar
    powerpc/8xx: Remove SoftwareEmulation() · fbbcc3bb
    Christophe Leroy authored
    Since commit aa42c69c ("[POWERPC] Add support for FP emulation
    for the e300c2 core"), program_check_exception() can be called for
    math emulation. In that case, 'reason' is 0.
    
    On the 8xx, there is a Software Emulation interrupt which is
    called for all unimplemented and illegal instructions. This
    interrupt calls SoftwareEmulation() which does almost the
    same as program_check_exception() called with reason = 0.
    
    The Software Emulation interrupt sets all reason bits to 0,
    it is therefore possible to call program_check_exception()
    directly from the interrupt handler.
    Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    fbbcc3bb
traps.c 49.1 KB