Add missing break statements to address violations of MISRA C:2012
Rule 16.3 (An unconditional `break' statement shall terminate
every switch-clause).
Make explicit unreachability of a program point with
ASSERT_UNREACHABLE() and add defensive code.
No functional change.
Signed-off-by: Federico Serafini <federico.serafini@bugseng.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
*/
if ( dst->type == OP_MEM && !s->fpu_ctrl && !fpu_check_write() )
dst->type = OP_NONE;
+ break;
}
break;
default:
generate_exception(X86_EXC_UD);
}
+ break;
}
break;
*/
if ( dst->type == OP_MEM && !s->fpu_ctrl && !fpu_check_write() )
dst->type = OP_NONE;
+ break;
}
break;
case 7: /* fistp m64i */
goto fpu_memdst64;
}
+ ASSERT_UNREACHABLE();
+ return X86EMUL_UNHANDLEABLE;
}
break;
}
if ( rc != 0 )
goto done;
+ break;
default:
break;
}