blob: 1fe3679d53813839c3365c1d60886656a272ce94 (
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
|
other: 0.773
device: 0.684
socket: 0.683
PID: 0.668
network: 0.661
performance: 0.612
permissions: 0.566
vnc: 0.538
boot: 0.522
semantic: 0.517
graphic: 0.457
KVM: 0.447
files: 0.446
debug: 0.423
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
|