@@ -109,8 +109,8 @@ def test(self):
109109 z0_new_str = '"{'
110110 for i in range (svl ):
111111 z0_old_values .append (z0 .GetChildAtIndex (i ).GetValueAsUnsigned ())
112- z0_new_values .append (z0 . GetChildAtIndex ( i ). GetValueAsUnsigned () + 5 )
113- z0_new_str = z0_new_str + ("0x%02x " % ( z0_old_values [i ] + 5 ) )
112+ z0_new_values .append (z0_old_values [ i ] + 5 )
113+ z0_new_str = z0_new_str + ("0x%02x " % z0_new_values [i ])
114114 z0_new_str = z0_new_str + '}"'
115115 self .runCmd ("reg write z0 %s" % z0_new_str )
116116
@@ -119,8 +119,8 @@ def test(self):
119119 z31_new_str = '"{'
120120 for i in range (svl ):
121121 z31_old_values .append (z31 .GetChildAtIndex (i ).GetValueAsUnsigned ())
122- z31_new_values .append (z31 . GetChildAtIndex ( i ). GetValueAsUnsigned () + 3 )
123- z31_new_str = z31_new_str + ("0x%02x " % ( z31_old_values [i ] + 3 ) )
122+ z31_new_values .append (z31_old_values [ i ] + 3 )
123+ z31_new_str = z31_new_str + ("0x%02x " % z31_new_values [i ])
124124 z31_new_str = z31_new_str + '}"'
125125 self .runCmd ("reg write z31 %s" % z31_new_str )
126126
@@ -129,8 +129,8 @@ def test(self):
129129 p0_new_str = '"{'
130130 for i in range (int (svl / 8 )):
131131 p0_old_values .append (p0 .GetChildAtIndex (i ).GetValueAsUnsigned ())
132- p0_new_values .append (p0 . GetChildAtIndex ( i ). GetValueAsUnsigned () - 5 )
133- p0_new_str = p0_new_str + ("0x%02x " % ( p0_old_values [i ] - 5 ) )
132+ p0_new_values .append (p0_old_values [ i ] - 5 )
133+ p0_new_str = p0_new_str + ("0x%02x " % p0_new_values [i ])
134134 p0_new_str = p0_new_str + '}"'
135135 self .runCmd ("reg write p0 %s" % p0_new_str )
136136
@@ -139,8 +139,8 @@ def test(self):
139139 p15_new_str = '"{'
140140 for i in range (int (svl / 8 )):
141141 p15_old_values .append (p15 .GetChildAtIndex (i ).GetValueAsUnsigned ())
142- p15_new_values .append (p15 . GetChildAtIndex ( i ). GetValueAsUnsigned () - 8 )
143- p15_new_str = p15_new_str + ("0x%02x " % ( p15_old_values [i ] - 8 ) )
142+ p15_new_values .append (p15_old_values [ i ] - 8 )
143+ p15_new_str = p15_new_str + ("0x%02x " % p15_new_values [i ])
144144 p15_new_str = p15_new_str + '}"'
145145 self .runCmd ("reg write p15 %s" % p15_new_str )
146146
@@ -149,8 +149,8 @@ def test(self):
149149 za_new_str = '"{'
150150 for i in range (svl * svl ):
151151 za_old_values .append (za .GetChildAtIndex (i ).GetValueAsUnsigned ())
152- za_new_values .append (za . GetChildAtIndex ( i ). GetValueAsUnsigned () + 7 )
153- za_new_str = za_new_str + ("0x%02x " % ( za_old_values [i ] + 7 ) )
152+ za_new_values .append (za_old_values [ i ] + 7 )
153+ za_new_str = za_new_str + ("0x%02x " % za_new_values [i ])
154154 za_new_str = za_new_str + '}"'
155155 self .runCmd ("reg write za %s" % za_new_str )
156156
@@ -159,8 +159,8 @@ def test(self):
159159 zt0_new_str = '"{'
160160 for i in range (64 ):
161161 zt0_old_values .append (zt0 .GetChildAtIndex (i ).GetValueAsUnsigned ())
162- zt0_new_values .append (zt0 . GetChildAtIndex ( i ). GetValueAsUnsigned () + 2 )
163- zt0_new_str = zt0_new_str + ("0x%02x " % ( zt0_old_values [i ] + 2 ) )
162+ zt0_new_values .append (zt0_old_values [ i ] + 2 )
163+ zt0_new_str = zt0_new_str + ("0x%02x " % zt0_new_values [i ])
164164 zt0_new_str = zt0_new_str + '}"'
165165 self .runCmd ("reg write zt0 %s" % zt0_new_str )
166166
0 commit comments