Skip to content
Commit ee8161f7 authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Michal Simek
Browse files

microblaze: exception: fix return address for delay slot exceptions



According to the MicroBlaze reference manual (xilinx2021.2/ug984/page-37):
"""
If an exception is caused by an instruction in a delay slot (that is,
ESR[DS]=1), the exception handler should return execution to
the address stored in BTR instead of the normal exception return
address stored in R17.
"""

Adjust the code to print the proper return address for delay slot
exceptions.

Signed-off-by: default avatarOvidiu Panait <ovidiu.panait@windriver.com>
Link: https://lore.kernel.org/r/20220213080925.1548411-4-ovidiu.panait@windriver.com


Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 7422b411
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment