Fix delivery of unaligned access exceptions.
In the unaligned access exception vector, actually pass the return PC
in the exception frame. This is required in order for unaligned access
fixup handlers in the operating system to work.
Signed-off-by: Jason Thorpe <thorpej@me.com>
Message-Id: <20210603035317.6814-3-thorpej@me.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
diff --git a/pal.S b/pal.S
index 64941a8..015a829 100644
--- a/pal.S
+++ b/pal.S
@@ -278,7 +278,7 @@
blbs p6, MchkBugCheck
addq p6, 4, p6 // increment past the faulting insn
- STACK_FRAME p0, p1, p2, 1
+ STACK_FRAME p0, p6, p2, 1
mfpr p0, ptEntUna
mfpr $gp, ptKgp