[Ltrace-devel] Fwd: [PATCH 3/3] Typo in ppc64 hfa handling preventing parameters-hfa test to pass (bad float register count)

Thierry Fauck@linux.vnet.ibm.com thierry at linux.vnet.ibm.com
Wed Mar 23 16:37:30 UTC 2016




-------- Forwarded Message --------
Subject: 	[PATCH 3/3] Typo in ppc64 hfa handling preventing
parameters-hfa test to pass (bad float register count)
Date: 	Wed, 23 Mar 2016 11:13:05 +0100
From: 	Thierry Fauck <thierry.fauck at fr.ibm.com>
To: 	ltrace-devel at lists.alioth.debian.org

	



From: Thierry Fauck <tfauck at free.fr>

[Typo in ppc64 hfa handling preventing parameters-hfa test to pass (bad
float register count)

         modified:   sysdeps/linux-gnu/ppc/fetch.c

Signed-off-by: Thierry Fauck <tfauck at free.fr>
---
 sysdeps/linux-gnu/ppc/fetch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/linux-gnu/ppc/fetch.c b/sysdeps/linux-gnu/ppc/fetch.c
index c6cbd71..e4045a0 100644
--- a/sysdeps/linux-gnu/ppc/fetch.c
+++ b/sysdeps/linux-gnu/ppc/fetch.c
@@ -416,7 +416,7 @@ allocate_hfa(struct fetch_context *ctx, struct process *proc,
 
 	/* if no remaining FP, GPR corresponding to slot is used
 	 * Mostly it is in part of r10.  */
-	if (ctx->vgreg == 10) {
+	if (ctx->greg <= 10) {
 		while (ctx->vgreg <= 10) {
 			struct value tmp;
 			value_init(&tmp, proc, NULL, hfa_info, 0);
-- 
2.7.0



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20160323/1de7221a/attachment.html>


More information about the Ltrace-devel mailing list