@@ -1695,7 +1695,7 @@ void HELPER(cdsg)(CPUS390XState *env, uint64_t addr,
1695
1695
void HELPER (cdsg_parallel )(CPUS390XState * env , uint64_t addr ,
1696
1696
uint32_t r1 , uint32_t r3 )
1697
1697
{
1698
- #ifdef HAVE_CMPXCHG128
1698
+ #if HAVE_CMPXCHG128 == 1
1699
1699
uintptr_t ra = GETPC ();
1700
1700
Int128 cmpv = int128_make128 (env -> regs [r1 + 1 ], env -> regs [r1 ]);
1701
1701
Int128 newv = int128_make128 (env -> regs [r3 + 1 ], env -> regs [r3 ]);
@@ -1834,7 +1834,7 @@ static uint32_t do_csst(CPUS390XState *env, uint32_t r3, uint64_t a1,
1834
1834
cpu_stq_data_ra (env , a1 + 0 , int128_gethi (nv ), ra );
1835
1835
cpu_stq_data_ra (env , a1 + 8 , int128_getlo (nv ), ra );
1836
1836
} else {
1837
- #ifdef HAVE_CMPXCHG128
1837
+ #if HAVE_CMPXCHG128 == 1
1838
1838
TCGMemOpIdx oi = make_memop_idx (MO_TEQ | MO_ALIGN_16 , mem_idx );
1839
1839
ov = helper_atomic_cmpxchgo_be_mmu (env , a1 , cv , nv , oi , ra );
1840
1840
cc = !int128_eq (ov , cv );
@@ -1875,7 +1875,7 @@ static uint32_t do_csst(CPUS390XState *env, uint32_t r3, uint64_t a1,
1875
1875
cpu_stq_data_ra (env , a2 + 0 , svh , ra );
1876
1876
cpu_stq_data_ra (env , a2 + 8 , svl , ra );
1877
1877
} else {
1878
- #ifdef HAVE_ATOMIC128
1878
+ #if HAVE_ATOMIC128 == 1
1879
1879
TCGMemOpIdx oi = make_memop_idx (MO_TEQ | MO_ALIGN_16 , mem_idx );
1880
1880
Int128 sv = int128_make128 (svl , svh );
1881
1881
helper_atomic_sto_be_mmu (env , a2 , sv , oi , ra );
@@ -2356,7 +2356,7 @@ uint64_t HELPER(lpq)(CPUS390XState *env, uint64_t addr)
2356
2356
2357
2357
uint64_t HELPER (lpq_parallel )(CPUS390XState * env , uint64_t addr )
2358
2358
{
2359
- #ifdef HAVE_ATOMIC128
2359
+ #if HAVE_ATOMIC128 == 1
2360
2360
uintptr_t ra = GETPC ();
2361
2361
uint64_t hi , lo ;
2362
2362
int mem_idx ;
@@ -2393,7 +2393,7 @@ void HELPER(stpq)(CPUS390XState *env, uint64_t addr,
2393
2393
void HELPER (stpq_parallel )(CPUS390XState * env , uint64_t addr ,
2394
2394
uint64_t low , uint64_t high )
2395
2395
{
2396
- #ifdef HAVE_ATOMIC128
2396
+ #if HAVE_ATOMIC128 == 1
2397
2397
uintptr_t ra = GETPC ();
2398
2398
int mem_idx ;
2399
2399
TCGMemOpIdx oi ;
0 commit comments