Skip to content

Commit

Permalink
accel/tcg: Remove redundant case in store_atom_16
Browse files Browse the repository at this point in the history
We handled the HAVE_ATOMIC128_RW case with atomic16_set at the top of
the function; the only thing left for a host without that support is
to fall through to cpu_loop_exit_atomic.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230916220151.526140-7-richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Nov 6, 2023
1 parent adc8467 commit 8b1b3db
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions accel/tcg/ldst_atomicity.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1103,10 +1103,6 @@ static void store_atom_16(CPUState *cpu, uintptr_t ra,
}
break;
case MO_128:
if (HAVE_ATOMIC128_RW) {
atomic16_set(pv, val);
return;
}
break;
default:
g_assert_not_reached();
Expand Down

0 comments on commit 8b1b3db

Please sign in to comment.