Commit 69a218fc84d96f978dcea41ae4a80d367ebd9fd0
1 parent
a6035857
target-ppc: mark a few helpers TCG_CALL_CONST and/or TCG_CALL_PURE
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7129 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
19 additions
and
19 deletions
target-ppc/helper.h
... | ... | @@ -31,23 +31,23 @@ DEF_HELPER_1(icbi, void, tl) |
31 | 31 | DEF_HELPER_4(lscbx, tl, tl, i32, i32, i32) |
32 | 32 | |
33 | 33 | #if defined(TARGET_PPC64) |
34 | -DEF_HELPER_2(mulhd, i64, i64, i64) | |
35 | -DEF_HELPER_2(mulhdu, i64, i64, i64) | |
34 | +DEF_HELPER_FLAGS_2(mulhd, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) | |
35 | +DEF_HELPER_FLAGS_2(mulhdu, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) | |
36 | 36 | DEF_HELPER_2(mulldo, i64, i64, i64) |
37 | 37 | #endif |
38 | 38 | |
39 | -DEF_HELPER_1(cntlzw, tl, tl) | |
40 | -DEF_HELPER_1(popcntb, tl, tl) | |
39 | +DEF_HELPER_FLAGS_1(cntlzw, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl) | |
40 | +DEF_HELPER_FLAGS_1(popcntb, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl) | |
41 | 41 | DEF_HELPER_2(sraw, tl, tl, tl) |
42 | 42 | #if defined(TARGET_PPC64) |
43 | -DEF_HELPER_1(cntlzd, tl, tl) | |
44 | -DEF_HELPER_1(popcntb_64, tl, tl) | |
43 | +DEF_HELPER_FLAGS_1(cntlzd, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl) | |
44 | +DEF_HELPER_FLAGS_1(popcntb_64, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl) | |
45 | 45 | DEF_HELPER_2(srad, tl, tl, tl) |
46 | 46 | #endif |
47 | 47 | |
48 | -DEF_HELPER_1(cntlsw32, i32, i32) | |
49 | -DEF_HELPER_1(cntlzw32, i32, i32) | |
50 | -DEF_HELPER_2(brinc, tl, tl, tl) | |
48 | +DEF_HELPER_FLAGS_1(cntlsw32, TCG_CALL_CONST | TCG_CALL_PURE, i32, i32) | |
49 | +DEF_HELPER_FLAGS_1(cntlzw32, TCG_CALL_CONST | TCG_CALL_PURE, i32, i32) | |
50 | +DEF_HELPER_FLAGS_2(brinc, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl) | |
51 | 51 | |
52 | 52 | DEF_HELPER_0(float_check_status, void) |
53 | 53 | #ifdef CONFIG_SOFTFLOAT |
... | ... | @@ -335,22 +335,22 @@ DEF_HELPER_1(6xx_tlbd, void, tl) |
335 | 335 | DEF_HELPER_1(6xx_tlbi, void, tl) |
336 | 336 | DEF_HELPER_1(74xx_tlbd, void, tl) |
337 | 337 | DEF_HELPER_1(74xx_tlbi, void, tl) |
338 | -DEF_HELPER_0(tlbia, void) | |
339 | -DEF_HELPER_1(tlbie, void, tl) | |
338 | +DEF_HELPER_FLAGS_0(tlbia, TCG_CALL_CONST, void) | |
339 | +DEF_HELPER_FLAGS_1(tlbie, TCG_CALL_CONST, void, tl) | |
340 | 340 | #if defined(TARGET_PPC64) |
341 | -DEF_HELPER_1(load_slb, tl, tl) | |
342 | -DEF_HELPER_2(store_slb, void, tl, tl) | |
343 | -DEF_HELPER_0(slbia, void) | |
344 | -DEF_HELPER_1(slbie, void, tl) | |
341 | +DEF_HELPER_FLAGS_1(load_slb, TCG_CALL_CONST, tl, tl) | |
342 | +DEF_HELPER_FLAGS_2(store_slb, TCG_CALL_CONST, void, tl, tl) | |
343 | +DEF_HELPER_FLAGS_0(slbia, TCG_CALL_CONST, void) | |
344 | +DEF_HELPER_FLAGS_1(slbie, TCG_CALL_CONST, void, tl) | |
345 | 345 | #endif |
346 | -DEF_HELPER_1(load_sr, tl, tl); | |
347 | -DEF_HELPER_2(store_sr, void, tl, tl) | |
346 | +DEF_HELPER_FLAGS_1(load_sr, TCG_CALL_CONST, tl, tl); | |
347 | +DEF_HELPER_FLAGS_2(store_sr, TCG_CALL_CONST, void, tl, tl) | |
348 | 348 | |
349 | -DEF_HELPER_1(602_mfrom, tl, tl) | |
349 | +DEF_HELPER_FLAGS_1(602_mfrom, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl) | |
350 | 350 | #endif |
351 | 351 | |
352 | 352 | DEF_HELPER_3(dlmzb, tl, tl, tl, i32) |
353 | -DEF_HELPER_1(clcs, tl, i32) | |
353 | +DEF_HELPER_FLAGS_1(clcs, TCG_CALL_CONST | TCG_CALL_PURE, tl, i32) | |
354 | 354 | #if !defined(CONFIG_USER_ONLY) |
355 | 355 | DEF_HELPER_1(rac, tl, tl) |
356 | 356 | #endif | ... | ... |