[PATCH] D107042: [libunwind][OR1K] Fix register restore on resume

Saleem Abdulrasool via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 2 09:40:52 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd6d0b6559e97: unwind: repair register restoration for OR1K (authored by compnerd).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107042/new/

https://reviews.llvm.org/D107042

Files:
  libunwind/src/UnwindRegistersRestore.S


Index: libunwind/src/UnwindRegistersRestore.S
===================================================================
--- libunwind/src/UnwindRegistersRestore.S
+++ libunwind/src/UnwindRegistersRestore.S
@@ -800,11 +800,12 @@
   l.lwz    r30,120(r3)
   l.lwz    r31,124(r3)
 
+  # load new pc into ra
+  l.lwz    r9, 128(r3)
+
   # at last, restore r3
   l.lwz    r3,  12(r3)
 
-  # load new pc into ra
-  l.lwz    r9, 128(r3)
   # jump to pc
   l.jr     r9
    l.nop


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107042.363501.patch
Type: text/x-patch
Size: 464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210802/f7d2a99e/attachment.bin>


More information about the llvm-commits mailing list