qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/8] Fix delivery of unaligned access exceptions.


From: Jason Thorpe
Subject: [PATCH 2/8] Fix delivery of unaligned access exceptions.
Date: Wed, 2 Jun 2021 20:53:11 -0700

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>
---
 pal.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.30.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]