Ooops, forgot comparefixed.patch
[soc.git] / src / soc / decoder / isa / comparefixed.patch
1 --- comparefixed.py.orig 2020-05-07 14:19:47.384535384 -0400
2 +++ comparefixed.py 2020-05-07 14:19:11.220806542 -0400
3 @@ -21,7 +21,7 @@
4 c = SelectableInt(value=0x2, bits=3)
5 else:
6 c = SelectableInt(value=0x1, bits=3)
7 - CR[4 * BF + 32:4 * BF + 35 + 1] = concat(c, XER[SO])
8 + CR.si[4 * BF + 32:4 * BF + 35 + 1] = concat(c, XER[SO])
9 return (CR,)
10
11 @inject()
12 @@ -38,7 +38,7 @@
13 c = SelectableInt(value=0x2, bits=3)
14 else:
15 c = SelectableInt(value=0x1, bits=3)
16 - CR[4 * BF + 32:4 * BF + 35 + 1] = concat(c, XER[SO])
17 + CR.si[4 * BF + 32:4 * BF + 35 + 1] = concat(c, XER[SO])
18 return (CR,)
19
20 @inject()
21 @@ -53,7 +53,7 @@
22 c = SelectableInt(value=0x2, bits=3)
23 else:
24 c = SelectableInt(value=0x1, bits=3)
25 - CR[4 * BF + 32:4 * BF + 35 + 1] = concat(c, XER[SO])
26 + CR.si[4 * BF + 32:4 * BF + 35 + 1] = concat(c, XER[SO])
27 return (CR,)
28
29 @inject()
30 @@ -70,7 +70,7 @@
31 c = SelectableInt(value=0x2, bits=3)
32 else:
33 c = SelectableInt(value=0x1, bits=3)
34 - CR[4 * BF + 32:4 * BF + 35 + 1] = concat(c, XER[SO])
35 + CR.si[4 * BF + 32:4 * BF + 35 + 1] = concat(c, XER[SO])
36 return (CR,)
37
38 @inject()
39 @@ -85,10 +85,10 @@
40 else:
41 in_range = le(src21lo, src1) & le(src1, src21hi) | le(src22lo, src1) & le(
42 src1, src22hi)
43 - CR[4 * BF + 32] = SelectableInt(value=0x0, bits=1)
44 - CR[4 * BF + 33] = in_range
45 - CR[4 * BF + 34] = SelectableInt(value=0x0, bits=1)
46 - CR[4 * BF + 35] = SelectableInt(value=0x0, bits=1)
47 + CR.si[4 * BF + 32] = SelectableInt(value=0x0, bits=1)
48 + CR.si[4 * BF + 33] = in_range
49 + CR.si[4 * BF + 34] = SelectableInt(value=0x0, bits=1)
50 + CR.si[4 * BF + 35] = SelectableInt(value=0x0, bits=1)
51 return (CR,)
52
53 @inject()
54 @@ -98,10 +98,10 @@
55 match = eq(src1, RB[0:8]) | eq(src1, RB[8:16]) | eq(src1, RB[16:24]) | eq(src1,
56 RB[24:32]) | eq(src1, RB[32:40]) | eq(src1, RB[40:48]) | eq(src1, RB[48:56]
57 ) | eq(src1, RB[56:64])
58 - CR[4 * BF + 32] = SelectableInt(value=0x0, bits=1)
59 - CR[4 * BF + 33] = match
60 - CR[4 * BF + 34] = SelectableInt(value=0x0, bits=1)
61 - CR[4 * BF + 35] = SelectableInt(value=0x0, bits=1)
62 + CR.si[4 * BF + 32] = SelectableInt(value=0x0, bits=1)
63 + CR.si[4 * BF + 33] = match
64 + CR.si[4 * BF + 34] = SelectableInt(value=0x0, bits=1)
65 + CR.si[4 * BF + 35] = SelectableInt(value=0x0, bits=1)
66 return (CR,)
67
68 comparefixed_instrs = {}