target-sparc: Fix order of function parameters
authorStefan Weil <sw@weilnetz.de>
Mon, 24 Oct 2011 20:29:48 +0000 (22:29 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 25 Oct 2011 19:30:00 +0000 (19:30 +0000)
commit8301c6363f833ac189778287897e26baed80df75
treee62f624b58ba36846fee572d7b2d24befd92f502
parent3b488f3e086db0b859256b2a8e368555bf49d276
target-sparc: Fix order of function parameters

The MinGW-w64 gcc complains about wrong parameters for
gen_helper_fpadd16_s and three other functions.

gen_helper_fpadd16_s is declared like this (hidden in lots of macros):

static inline void
 gen_helper_fpadd16s(TCGv_i32 retval, TCGv_ptr arg1,
                     TCGv_i32 arg2, TCGv_i32 arg3);

So it looks like cpu_env should be the 2nd parameter.

Please review this patch as I have no environment to test it
(maybe the 1st parameter should be cpu_dst?).

Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/translate.c