m68k: fix if statement with empty body, spotted by clang
Fix clang error: CC m68k-softmmu/helper.o /src/qemu/target-m68k/helper.c:773:33: error: if statement has empty body [-Wempty-body] else if (val & (1ull << 47)); Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
67774a0444
commit
c4162574c4
@ -768,10 +768,11 @@ void HELPER(mac_set_flags)(CPUState *env, uint32_t acc)
|
|||||||
{
|
{
|
||||||
uint64_t val;
|
uint64_t val;
|
||||||
val = env->macc[acc];
|
val = env->macc[acc];
|
||||||
if (val == 0)
|
if (val == 0) {
|
||||||
env->macsr |= MACSR_Z;
|
env->macsr |= MACSR_Z;
|
||||||
else if (val & (1ull << 47));
|
} else if (val & (1ull << 47)) {
|
||||||
env->macsr |= MACSR_N;
|
env->macsr |= MACSR_N;
|
||||||
|
}
|
||||||
if (env->macsr & (MACSR_PAV0 << acc)) {
|
if (env->macsr & (MACSR_PAV0 << acc)) {
|
||||||
env->macsr |= MACSR_V;
|
env->macsr |= MACSR_V;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user