summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/118/none/1856706
blob: 5dd05e64a7f11e21f527997b7d77f13aabf8e5fb (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
device: 0.684
socket: 0.683
ppc: 0.681
kernel: 0.668
PID: 0.668
network: 0.661
register: 0.629
performance: 0.612
hypervisor: 0.610
architecture: 0.607
peripherals: 0.605
VMM: 0.568
permissions: 0.566
user-level: 0.540
arm: 0.539
vnc: 0.538
boot: 0.522
i386: 0.517
semantic: 0.517
TCG: 0.513
x86: 0.497
mistranslation: 0.491
assembly: 0.460
risc-v: 0.458
graphic: 0.457
KVM: 0.447
files: 0.446
debug: 0.423
virtual: 0.363

target/mips/op_helper.c:971:duplicated branches ?

qemu-4.2.0/target/mips/op_helper.c:971:8: warning: this condition has identical branches [-Wduplicated-branches]

Source code is

   if (other_tc == other->current_tc) {
        tccause = other->CP0_Cause;
    } else {
        tccause = other->CP0_Cause;
    }

Possible cut'n'paste error ?

On Tue, 17 Dec. 2019, 09:28 Thomas Huth, <email address hidden> wrote:

> On 17/12/2019 14.25, dcb wrote:
> > Public bug reported:
> >
> > qemu-4.2.0/target/mips/op_helper.c:971:8: warning: this condition has
> > identical branches [-Wduplicated-branches]
> >
> > Source code is
> >
> >    if (other_tc == other->current_tc) {
> >         tccause = other->CP0_Cause;
> >     } else {
> >         tccause = other->CP0_Cause;
> >     }
> >
> > Possible cut'n'paste error ?
>
>  Hi Edgar,
>
> you added the code in 2011 ... do you still remember the details here,
> whether that was on purpose or whether it should look differently?
>
>  Thomas
>


Hi Thomas,

Sorry but I barely recall yesterday, 2011 was a long time ago... It does
look weird.

IIRC smp was kinda of working but the multithreading support wasn't. Some
of these paths were probably not tested too much at the time.

Cheers,
Edgar

>
>


Patch has been included here:
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=9788e8c9b64e4cebb01