e1d387c5a8a4aa4f1b35a4ba832d0127db8b84c9
[openwrt-github/.git] / package / devel / valgrind / patches / 130-mips_fix_soft_float.patch
1 --- a/VEX/priv/guest_mips_helpers.c
2 +++ b/VEX/priv/guest_mips_helpers.c
3 @@ -1189,6 +1189,7 @@ extern UInt mips_dirtyhelper_calculate_F
4                                                     flt_op inst )
5  {
6     UInt ret = 0;
7 +#ifndef __mips_soft_float
8  #if defined(__mips__)
9     VexGuestMIPS32State* guest_state = (VexGuestMIPS32State*)gs;
10     UInt loFsVal, hiFsVal, loFtVal, hiFtVal;
11 @@ -1308,6 +1309,7 @@ extern UInt mips_dirtyhelper_calculate_F
12           break;
13     }
14  #endif
15 +#endif
16     return ret;
17  }
18  
19 @@ -1317,6 +1319,7 @@ extern UInt mips_dirtyhelper_calculate_F
20                                                     flt_op inst )
21  {
22     UInt ret = 0;
23 +#ifndef __mips_soft_float
24  #if defined(__mips__)
25  #if defined(VGA_mips32)
26     VexGuestMIPS32State* guest_state = (VexGuestMIPS32State*)gs;
27 @@ -1427,6 +1430,7 @@ extern UInt mips_dirtyhelper_calculate_F
28           break;
29     }
30  #endif
31 +#endif
32     return ret;
33  }
34