* [COMMITTED] AArch64 simplify getcontext.S initialization of pstate.
@ 2013-06-28 10:39 Marcus Shawcroft
0 siblings, 0 replies; only message in thread
From: Marcus Shawcroft @ 2013-06-28 10:39 UTC (permalink / raw)
To: libc-ports
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
Hi,
This patch simplifies the initialization of the pstate field as
suggested by Richard Henderson here:
http://sourceware.org/ml/libc-ports/2013-06/msg00001.html
/Marcus
2013-06-28 Marcus Shawcroft <marcus.shawcroft@linaro.org>
* sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Simplify
oPSTATE initialization.
[-- Attachment #2: fix-pstate-init.diff --]
[-- Type: application/octet-stream, Size: 496 bytes --]
diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S b/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S
index c370957..2ba4804 100644
--- a/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/getcontext.S
@@ -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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-28 10:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-28 10:39 [COMMITTED] AArch64 simplify getcontext.S initialization of pstate Marcus Shawcroft
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).