summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/105/mistranslation/1577841
blob: bc27b1e487921d86ef2c9c79762929230c4c5de0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
mistranslation: 0.980
instruction: 0.920
device: 0.850
socket: 0.788
semantic: 0.752
network: 0.711
vnc: 0.656
graphic: 0.523
assembly: 0.493
other: 0.466
boot: 0.441
KVM: 0.288

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

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 [-Wmemset-elt-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));

Fix has been included here:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=9d989c732b153fe15