CI(full),CI(release): Should use if instead of ifdef

This commit is contained in:
mio
2025-02-11 17:44:24 +08:00
parent 5981f10c5d
commit 791557e404
5 changed files with 20 additions and 20 deletions

View File

@@ -568,7 +568,7 @@ uint64_t HELPER(paired_cmpxchg64_le)(CPUARMState *env, uint64_t addr,
uint64_t HELPER(paired_cmpxchg64_le_parallel)(CPUARMState *env, uint64_t addr,
uint64_t new_lo, uint64_t new_hi)
{
#ifdef HAVE_CMPXCHG128
#if HAVE_CMPXCHG128 == 1
Int128 oldv, cmpv, newv;
uintptr_t ra = GETPC();
bool success;
@@ -625,7 +625,7 @@ uint64_t HELPER(paired_cmpxchg64_be)(CPUARMState *env, uint64_t addr,
uint64_t HELPER(paired_cmpxchg64_be_parallel)(CPUARMState *env, uint64_t addr,
uint64_t new_lo, uint64_t new_hi)
{
#ifdef HAVE_CMPXCHG128
#if HAVE_CMPXCHG128 == 1
Int128 oldv, cmpv, newv;
uintptr_t ra = GETPC();
bool success;
@@ -657,7 +657,7 @@ uint64_t HELPER(paired_cmpxchg64_be_parallel)(CPUARMState *env, uint64_t addr,
void HELPER(casp_le_parallel)(CPUARMState *env, uint32_t rs, uint64_t addr,
uint64_t new_lo, uint64_t new_hi)
{
#ifdef HAVE_CMPXCHG128
#if HAVE_CMPXCHG128 == 1
Int128 oldv, cmpv, newv;
uintptr_t ra = GETPC();
int mem_idx;
@@ -682,7 +682,7 @@ void HELPER(casp_le_parallel)(CPUARMState *env, uint32_t rs, uint64_t addr,
void HELPER(casp_be_parallel)(CPUARMState *env, uint32_t rs, uint64_t addr,
uint64_t new_hi, uint64_t new_lo)
{
#ifdef HAVE_CMPXCHG128
#if HAVE_CMPXCHG128 == 1
Int128 oldv, cmpv, newv;
uintptr_t ra = GETPC();
int mem_idx;

View File

@@ -130,7 +130,7 @@ void helper_cmpxchg16b(CPUX86State *env, target_ulong a0)
if ((a0 & 0xf) != 0) {
raise_exception_ra(env, EXCP0D_GPF, ra);
} else {
#ifdef HAVE_CMPXCHG128
#if HAVE_CMPXCHG128 == 1
int eflags = cpu_cc_compute_all(env, CC_OP);
Int128 cmpv = int128_make128(env->regs[R_EAX], env->regs[R_EDX]);

View File

@@ -377,7 +377,7 @@ target_ulong helper_lscbx(CPUPPCState *env, target_ulong addr, uint32_t reg,
uint64_t helper_lq_le_parallel(CPUPPCState *env, target_ulong addr,
uint32_t opidx)
{
#ifdef HAVE_ATOMIC128
#if HAVE_ATOMIC128 == 1
Int128 ret;
/* We will have raised EXCP_ATOMIC from the translator. */
@@ -394,7 +394,7 @@ uint64_t helper_lq_le_parallel(CPUPPCState *env, target_ulong addr,
uint64_t helper_lq_be_parallel(CPUPPCState *env, target_ulong addr,
uint32_t opidx)
{
#ifdef HAVE_ATOMIC128
#if HAVE_ATOMIC128 == 1
Int128 ret;
/* We will have raised EXCP_ATOMIC from the translator. */
@@ -411,7 +411,7 @@ uint64_t helper_lq_be_parallel(CPUPPCState *env, target_ulong addr,
void helper_stq_le_parallel(CPUPPCState *env, target_ulong addr,
uint64_t lo, uint64_t hi, uint32_t opidx)
{
#ifdef HAVE_ATOMIC128
#if HAVE_ATOMIC128 == 1
Int128 val;
/* We will have raised EXCP_ATOMIC from the translator. */
@@ -427,7 +427,7 @@ void helper_stq_le_parallel(CPUPPCState *env, target_ulong addr,
void helper_stq_be_parallel(CPUPPCState *env, target_ulong addr,
uint64_t lo, uint64_t hi, uint32_t opidx)
{
#ifdef HAVE_ATOMIC128
#if HAVE_ATOMIC128 == 1
Int128 val;
/* We will have raised EXCP_ATOMIC from the translator. */
@@ -446,7 +446,7 @@ uint32_t helper_stqcx_le_parallel(CPUPPCState *env, target_ulong addr,
uint64_t new_lo, uint64_t new_hi,
uint32_t opidx)
{
#ifdef HAVE_CMPXCHG128
#if HAVE_CMPXCHG128 == 1
bool success = false;
/* We will have raised EXCP_ATOMIC from the translator. */
@@ -473,7 +473,7 @@ uint32_t helper_stqcx_be_parallel(CPUPPCState *env, target_ulong addr,
uint64_t new_lo, uint64_t new_hi,
uint32_t opidx)
{
#ifdef HAVE_CMPXCHG128
#if HAVE_CMPXCHG128 == 1
bool success = false;
/* We will have raised EXCP_ATOMIC from the translator. */

View File

@@ -2780,7 +2780,7 @@ static void gen_lq(DisasContext *ctx)
hi = cpu_gpr[rd];
if (tb_cflags(ctx->base.tb) & CF_PARALLEL) {
#ifdef HAVE_ATOMIC128
#if HAVE_ATOMIC128 == 1
TCGv_i32 oi = tcg_temp_new_i32(tcg_ctx);
if (ctx->le_mode) {
tcg_gen_movi_i32(tcg_ctx, oi, make_memop_idx(MO_LEQ, ctx->mem_idx));
@@ -2958,7 +2958,7 @@ static void gen_std(DisasContext *ctx)
hi = cpu_gpr[rs];
if (tb_cflags(ctx->base.tb) & CF_PARALLEL) {
#ifdef HAVE_ATOMIC128
#if HAVE_ATOMIC128 == 1
TCGv_i32 oi = tcg_temp_new_i32(tcg_ctx);
if (ctx->le_mode) {
tcg_gen_movi_i32(tcg_ctx, oi, make_memop_idx(MO_LEQ, ctx->mem_idx));
@@ -3574,7 +3574,7 @@ static void gen_lqarx(DisasContext *ctx)
hi = cpu_gpr[rd];
if (tb_cflags(ctx->base.tb) & CF_PARALLEL) {
#ifdef HAVE_ATOMIC128
#if HAVE_ATOMIC128 == 1
TCGv_i32 oi = tcg_temp_new_i32(tcg_ctx);
if (ctx->le_mode) {
tcg_gen_movi_i32(tcg_ctx, oi, make_memop_idx(MO_LEQ | MO_ALIGN_16,
@@ -3632,7 +3632,7 @@ static void gen_stqcx_(DisasContext *ctx)
hi = cpu_gpr[rs];
if (tb_cflags(ctx->base.tb) & CF_PARALLEL) {
#ifdef HAVE_CMPXCHG128
#if HAVE_CMPXCHG128 == 1
TCGv_i32 oi = tcg_const_i32(tcg_ctx, DEF_MEMOP(MO_Q) | MO_ALIGN_16);
if (ctx->le_mode) {
gen_helper_stqcx_le_parallel(tcg_ctx, cpu_crf[0], tcg_ctx->cpu_env,

View File

@@ -1695,7 +1695,7 @@ void HELPER(cdsg)(CPUS390XState *env, uint64_t addr,
void HELPER(cdsg_parallel)(CPUS390XState *env, uint64_t addr,
uint32_t r1, uint32_t r3)
{
#ifdef HAVE_CMPXCHG128
#if HAVE_CMPXCHG128 == 1
uintptr_t ra = GETPC();
Int128 cmpv = int128_make128(env->regs[r1 + 1], env->regs[r1]);
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,
cpu_stq_data_ra(env, a1 + 0, int128_gethi(nv), ra);
cpu_stq_data_ra(env, a1 + 8, int128_getlo(nv), ra);
} else {
#ifdef HAVE_CMPXCHG128
#if HAVE_CMPXCHG128 == 1
TCGMemOpIdx oi = make_memop_idx(MO_TEQ | MO_ALIGN_16, mem_idx);
ov = helper_atomic_cmpxchgo_be_mmu(env, a1, cv, nv, oi, ra);
cc = !int128_eq(ov, cv);
@@ -1875,7 +1875,7 @@ static uint32_t do_csst(CPUS390XState *env, uint32_t r3, uint64_t a1,
cpu_stq_data_ra(env, a2 + 0, svh, ra);
cpu_stq_data_ra(env, a2 + 8, svl, ra);
} else {
#ifdef HAVE_ATOMIC128
#if HAVE_ATOMIC128 == 1
TCGMemOpIdx oi = make_memop_idx(MO_TEQ | MO_ALIGN_16, mem_idx);
Int128 sv = int128_make128(svl, svh);
helper_atomic_sto_be_mmu(env, a2, sv, oi, ra);
@@ -2356,7 +2356,7 @@ uint64_t HELPER(lpq)(CPUS390XState *env, uint64_t addr)
uint64_t HELPER(lpq_parallel)(CPUS390XState *env, uint64_t addr)
{
#ifdef HAVE_ATOMIC128
#if HAVE_ATOMIC128 == 1
uintptr_t ra = GETPC();
uint64_t hi, lo;
int mem_idx;
@@ -2393,7 +2393,7 @@ void HELPER(stpq)(CPUS390XState *env, uint64_t addr,
void HELPER(stpq_parallel)(CPUS390XState *env, uint64_t addr,
uint64_t low, uint64_t high)
{
#ifdef HAVE_ATOMIC128
#if HAVE_ATOMIC128 == 1
uintptr_t ra = GETPC();
int mem_idx;
TCGMemOpIdx oi;