• Stafford Horne's avatar
    openrisc: entry: Fix delay slot detection · e6d20c55
    Stafford Horne authored
    Use execption SR stored in pt_regs for detection, the current SR is not
    correct as the handler is running after return from exception.
    
    Also, The code that checks for a delay slot uses a flag bitmask and then
    wants to check if the result is not zero.  The test it implemented was
    wrong.
    
    Correct it by changing the test to check result against non zero.
    Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
    e6d20c55
entry.S 31.1 KB