qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

altera_timer: fix incorrect memset

Use sizeof instead of ARRAY_SIZE, fixing -Wmemset-elt-size with recent
GCC versions.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>

authored by

Paolo Bonzini and committed by
Michael Tokarev
cc16ee9d 271f37ab

+1 -1
+1 -1
hw/timer/altera_timer.c
··· 204 204 205 205 ptimer_stop(t->ptimer); 206 206 ptimer_set_limit(t->ptimer, 0xffffffff, 1); 207 - memset(t->regs, 0, ARRAY_SIZE(t->regs)); 207 + memset(t->regs, 0, sizeof(t->regs)); 208 208 } 209 209 210 210 static Property altera_timer_properties[] = {