Remove warnings (#1140)

* remove warnings on windows with vs2019.

* remove warnings.
This commit is contained in:
Chen Huitao
2019-09-08 16:44:16 +08:00
committed by Nguyen Anh Quynh
parent 60896de9f4
commit ca6516ff79
6 changed files with 17 additions and 9 deletions

View File

@ -527,7 +527,8 @@ void mips_cpu_do_interrupt(CPUState *cs)
break;
case EXCP_SRESET:
env->CP0_Status |= (1 << CP0St_SR);
memset(env->CP0_WatchLo, 0, sizeof(*env->CP0_WatchLo));
/* memset CP0_WatchLo which is fixed size array. */
memset(env->CP0_WatchLo, 0, sizeof(env->CP0_WatchLo));
goto set_error_EPC;
case EXCP_NMI:
env->CP0_Status |= (1 << CP0St_NMI);