[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1577841] Re: target-mips/helper.c:542: bad sizeof ?

From: T. Huth
Subject: [Qemu-devel] [Bug 1577841] Re: target-mips/helper.c:542: bad sizeof ?
Date: Fri, 27 May 2016 07:24:08 -0000

Fix has been included here:

** Changed in: qemu
       Status: New => Fix Committed

You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

  target-mips/helper.c:542: bad sizeof ?

Status in QEMU:
  Fix Committed

Bug description:
  Recent versions of gcc say this:

  qemu/target-mips/helper.c:542:9: warning: ‘memset’ used with length
  equal to number of elements without multiplication by element size

  Source code is

     memset(env->CP0_WatchLo, 0, sizeof(*env->CP0_WatchLo));

  Maybe better code

     memset(env->CP0_WatchLo, 0, 8 * sizeof(target_ulong));

To manage notifications about this bug go to:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]