]> git.ipfire.org Git - thirdparty/qemu.git/commit
target-mips: fix call to memset in soft reset code
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 9 May 2016 16:44:00 +0000 (18:44 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 4 Aug 2016 21:27:40 +0000 (16:27 -0500)
commita525decfaa3449f1458ea2d7a06320cf46aebf3f
tree9fae095aeaba5f2939e449f61203b66bb07e1fa4
parent2cf1a1223b915ad6813dfc8da9e866d68a11a575
target-mips: fix call to memset in soft reset code

Recent versions of GCC report the following error when compiling
target-mips/helper.c:

  qemu/target-mips/helper.c:542:9: warning: â€˜memset’ used with length
  equal to number of elements without multiplication by element size
  [-Wmemset-elt-size]

This is indeed correct and due to a wrong usage of sizeof(). Fix that.

Cc: Stefan Weil <sw@weilnetz.de>
Cc: Leon Alrae <leon.alrae@imgtec.com>
Cc: qemu-stable@nongnu.org
LP: https://bugs.launchpad.net/qemu/+bug/1577841
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
(cherry picked from commit 9d989c732b153fe1576adbddb9879313a24d3cd2)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-mips/helper.c