[AArch64] Simplify getcontext pstate initialization.
authorMarcus Shawcroft <marcus.shawcroft@linaro.org>
Fri, 28 Jun 2013 10:23:58 +0000 (11:23 +0100)
committerMarcus Shawcroft <marcus.shawcroft@linaro.org>
Fri, 28 Jun 2013 10:23:58 +0000 (11:23 +0100)
ports/ChangeLog.aarch64
ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S

index 8119c42..25424bb 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-28  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
+
+       * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Simplify
+       oPSTATE initialization.
+
 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist:
index c370957..2ba4804 100644 (file)
@@ -54,8 +54,7 @@ ENTRY(__getcontext)
        str     x2, [x0, oSP]
 
        /* Initialize the pstate.  */
-       mov     x3, #0
-       str     x3, [x0, oPSTATE]
+       str     xzr, [x0, oPSTATE]
 
        /* Figure out where to place the first context extension
           block.  */