Martin Storsjo : winedump: Fix the dumping of arm64 packed float restoration.

Alexandre Julliard julliard at winehq.org
Fri Aug 28 15:17:58 CDT 2020


Module: wine
Branch: master
Commit: 7ca68a86313e39d21cc92eac84a00841318143ae
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7ca68a86313e39d21cc92eac84a00841318143ae

Author: Martin Storsjo <martin at martin.st>
Date:   Fri Aug 28 12:45:36 2020 +0300

winedump: Fix the dumping of arm64 packed float restoration.

This previously dumped one register pair too few.

Signed-off-by: Martin Storsjo <martin at martin.st>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/winedump/pe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c
index f03c523be0..fef95c6bb6 100644
--- a/tools/winedump/pe.c
+++ b/tools/winedump/pe.c
@@ -1412,7 +1412,7 @@ static void dump_arm64_packed_info( const struct runtime_function_arm64 *func )
     {
         if (func->u.s.RegF % 2 == 0)
             printf( "    %04x:  str d%u,[sp,#%#x]\n", pos++, 8 + func->u.s.RegF, intsz + fpsz - 8 );
-        for (i = func->u.s.RegF / 2 - 1; i >= 0; i--)
+        for (i = (func->u.s.RegF - 1)/ 2; i >= 0; i--)
         {
             if (!i && !intsz)
                 printf( "    %04x:  stp d8,d9,[sp,-#%#x]!\n", pos++, savesz );




More information about the wine-cvs mailing list