summaryrefslogtreecommitdiff
path: root/pal.S
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@me.com>2021-06-02 20:53:11 -0700
committerRichard Henderson <richard.henderson@linaro.org>2021-06-05 17:26:13 -0700
commita169c0ba88803576addae81aa2fd4d8f16eef0cc (patch)
tree3f83146e131b20fed2ed46aba07148013c941598 /pal.S
parent394234f7d7fb737198783ce6340873858aa939f9 (diff)
downloadqemu-palcode-a169c0ba88803576addae81aa2fd4d8f16eef0cc.zip
qemu-palcode-a169c0ba88803576addae81aa2fd4d8f16eef0cc.tar.gz
qemu-palcode-a169c0ba88803576addae81aa2fd4d8f16eef0cc.tar.bz2
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>
Diffstat (limited to 'pal.S')
-rw-r--r--pal.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/pal.S b/pal.S
index 64941a8..015a829 100644
--- a/pal.S
+++ b/pal.S
@@ -278,7 +278,7 @@ Pal_Unalign:
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