@@ -404,7 +404,7 @@ static int gpr_set(struct task_struct *target, const struct user_regset *regset,
404
404
405
405
/*
406
406
* Regardless of transactions, 'fp_state' holds the current running
407
- * value of all FPR registers and 'transact_fp ' holds the last checkpointed
407
+ * value of all FPR registers and 'ckfp_state ' holds the last checkpointed
408
408
* value of all FPR registers for the current transaction.
409
409
*
410
410
* Userspace interface buffer layout:
@@ -442,7 +442,7 @@ static int fpr_get(struct task_struct *target, const struct user_regset *regset,
442
442
443
443
/*
444
444
* Regardless of transactions, 'fp_state' holds the current running
445
- * value of all FPR registers and 'transact_fp ' holds the last checkpointed
445
+ * value of all FPR registers and 'ckfp_state ' holds the last checkpointed
446
446
* value of all FPR registers for the current transaction.
447
447
*
448
448
* Userspace interface buffer layout:
@@ -506,7 +506,7 @@ static int vr_active(struct task_struct *target,
506
506
507
507
/*
508
508
* Regardless of transactions, 'vr_state' holds the current running
509
- * value of all the VMX registers and 'transact_vr ' holds the last
509
+ * value of all the VMX registers and 'ckvr_state ' holds the last
510
510
* checkpointed value of all the VMX registers for the current
511
511
* transaction to fall back on in case it aborts.
512
512
*
@@ -553,7 +553,7 @@ static int vr_get(struct task_struct *target, const struct user_regset *regset,
553
553
554
554
/*
555
555
* Regardless of transactions, 'vr_state' holds the current running
556
- * value of all the VMX registers and 'transact_vr ' holds the last
556
+ * value of all the VMX registers and 'ckvr_state ' holds the last
557
557
* checkpointed value of all the VMX registers for the current
558
558
* transaction to fall back on in case it aborts.
559
559
*
@@ -617,7 +617,7 @@ static int vsr_active(struct task_struct *target,
617
617
618
618
/*
619
619
* Regardless of transactions, 'fp_state' holds the current running
620
- * value of all FPR registers and 'transact_fp ' holds the last
620
+ * value of all FPR registers and 'ckfp_state ' holds the last
621
621
* checkpointed value of all FPR registers for the current
622
622
* transaction.
623
623
*
@@ -650,7 +650,7 @@ static int vsr_get(struct task_struct *target, const struct user_regset *regset,
650
650
651
651
/*
652
652
* Regardless of transactions, 'fp_state' holds the current running
653
- * value of all FPR registers and 'transact_fp ' holds the last
653
+ * value of all FPR registers and 'ckfp_state ' holds the last
654
654
* checkpointed value of all FPR registers for the current
655
655
* transaction.
656
656
*
@@ -945,7 +945,7 @@ static int tm_cfpr_active(struct task_struct *target,
945
945
*
946
946
* This function gets in transaction checkpointed FPR registers.
947
947
*
948
- * When the transaction is active 'transact_fp ' holds the checkpointed
948
+ * When the transaction is active 'ckfp_state ' holds the checkpointed
949
949
* values for the current transaction to fall back on if it aborts
950
950
* in between. This function gets those checkpointed FPR registers.
951
951
* The userspace interface buffer layout is as follows.
@@ -975,8 +975,8 @@ static int tm_cfpr_get(struct task_struct *target,
975
975
976
976
/* copy to local buffer then write that out */
977
977
for (i = 0 ; i < 32 ; i ++ )
978
- buf [i ] = target -> thread .TS_TRANS_FPR (i );
979
- buf [32 ] = target -> thread .transact_fp .fpscr ;
978
+ buf [i ] = target -> thread .TS_CKFPR (i );
979
+ buf [32 ] = target -> thread .ckfp_state .fpscr ;
980
980
return user_regset_copyout (& pos , & count , & kbuf , & ubuf , buf , 0 , -1 );
981
981
}
982
982
@@ -991,7 +991,7 @@ static int tm_cfpr_get(struct task_struct *target,
991
991
*
992
992
* This function sets in transaction checkpointed FPR registers.
993
993
*
994
- * When the transaction is active 'transact_fp ' holds the checkpointed
994
+ * When the transaction is active 'ckfp_state ' holds the checkpointed
995
995
* FPR register values for the current transaction to fall back on
996
996
* if it aborts in between. This function sets these checkpointed
997
997
* FPR registers. The userspace interface buffer layout is as follows.
@@ -1024,8 +1024,8 @@ static int tm_cfpr_set(struct task_struct *target,
1024
1024
if (i )
1025
1025
return i ;
1026
1026
for (i = 0 ; i < 32 ; i ++ )
1027
- target -> thread .TS_TRANS_FPR (i ) = buf [i ];
1028
- target -> thread .transact_fp .fpscr = buf [32 ];
1027
+ target -> thread .TS_CKFPR (i ) = buf [i ];
1028
+ target -> thread .ckfp_state .fpscr = buf [32 ];
1029
1029
return 0 ;
1030
1030
}
1031
1031
@@ -1060,7 +1060,7 @@ static int tm_cvmx_active(struct task_struct *target,
1060
1060
*
1061
1061
* This function gets in transaction checkpointed VMX registers.
1062
1062
*
1063
- * When the transaction is active 'transact_vr ' and 'transact_vrsave ' hold
1063
+ * When the transaction is active 'ckvr_state ' and 'ckvrsave ' hold
1064
1064
* the checkpointed values for the current transaction to fall
1065
1065
* back on if it aborts in between. The userspace interface buffer
1066
1066
* layout is as follows.
@@ -1092,7 +1092,7 @@ static int tm_cvmx_get(struct task_struct *target,
1092
1092
flush_altivec_to_thread (target );
1093
1093
1094
1094
ret = user_regset_copyout (& pos , & count , & kbuf , & ubuf ,
1095
- & target -> thread .transact_vr , 0 ,
1095
+ & target -> thread .ckvr_state , 0 ,
1096
1096
33 * sizeof (vector128 ));
1097
1097
if (!ret ) {
1098
1098
/*
@@ -1103,7 +1103,7 @@ static int tm_cvmx_get(struct task_struct *target,
1103
1103
u32 word ;
1104
1104
} vrsave ;
1105
1105
memset (& vrsave , 0 , sizeof (vrsave ));
1106
- vrsave .word = target -> thread .transact_vrsave ;
1106
+ vrsave .word = target -> thread .ckvrsave ;
1107
1107
ret = user_regset_copyout (& pos , & count , & kbuf , & ubuf , & vrsave ,
1108
1108
33 * sizeof (vector128 ), -1 );
1109
1109
}
@@ -1122,7 +1122,7 @@ static int tm_cvmx_get(struct task_struct *target,
1122
1122
*
1123
1123
* This function sets in transaction checkpointed VMX registers.
1124
1124
*
1125
- * When the transaction is active 'transact_vr ' and 'transact_vrsave ' hold
1125
+ * When the transaction is active 'ckvr_state ' and 'ckvrsave ' hold
1126
1126
* the checkpointed values for the current transaction to fall
1127
1127
* back on if it aborts in between. The userspace interface buffer
1128
1128
* layout is as follows.
@@ -1153,7 +1153,7 @@ static int tm_cvmx_set(struct task_struct *target,
1153
1153
flush_altivec_to_thread (target );
1154
1154
1155
1155
ret = user_regset_copyin (& pos , & count , & kbuf , & ubuf ,
1156
- & target -> thread .transact_vr , 0 ,
1156
+ & target -> thread .ckvr_state , 0 ,
1157
1157
33 * sizeof (vector128 ));
1158
1158
if (!ret && count > 0 ) {
1159
1159
/*
@@ -1164,11 +1164,11 @@ static int tm_cvmx_set(struct task_struct *target,
1164
1164
u32 word ;
1165
1165
} vrsave ;
1166
1166
memset (& vrsave , 0 , sizeof (vrsave ));
1167
- vrsave .word = target -> thread .transact_vrsave ;
1167
+ vrsave .word = target -> thread .ckvrsave ;
1168
1168
ret = user_regset_copyin (& pos , & count , & kbuf , & ubuf , & vrsave ,
1169
1169
33 * sizeof (vector128 ), -1 );
1170
1170
if (!ret )
1171
- target -> thread .transact_vrsave = vrsave .word ;
1171
+ target -> thread .ckvrsave = vrsave .word ;
1172
1172
}
1173
1173
1174
1174
return ret ;
@@ -1206,7 +1206,7 @@ static int tm_cvsx_active(struct task_struct *target,
1206
1206
*
1207
1207
* This function gets in transaction checkpointed VSX registers.
1208
1208
*
1209
- * When the transaction is active 'transact_fp ' holds the checkpointed
1209
+ * When the transaction is active 'ckfp_state ' holds the checkpointed
1210
1210
* values for the current transaction to fall back on if it aborts
1211
1211
* in between. This function gets those checkpointed VSX registers.
1212
1212
* The userspace interface buffer layout is as follows.
@@ -1236,7 +1236,7 @@ static int tm_cvsx_get(struct task_struct *target,
1236
1236
flush_vsx_to_thread (target );
1237
1237
1238
1238
for (i = 0 ; i < 32 ; i ++ )
1239
- buf [i ] = target -> thread .transact_fp .fpr [i ][TS_VSRLOWOFFSET ];
1239
+ buf [i ] = target -> thread .ckfp_state .fpr [i ][TS_VSRLOWOFFSET ];
1240
1240
ret = user_regset_copyout (& pos , & count , & kbuf , & ubuf ,
1241
1241
buf , 0 , 32 * sizeof (double ));
1242
1242
@@ -1254,7 +1254,7 @@ static int tm_cvsx_get(struct task_struct *target,
1254
1254
*
1255
1255
* This function sets in transaction checkpointed VSX registers.
1256
1256
*
1257
- * When the transaction is active 'transact_fp ' holds the checkpointed
1257
+ * When the transaction is active 'ckfp_state ' holds the checkpointed
1258
1258
* VSX register values for the current transaction to fall back on
1259
1259
* if it aborts in between. This function sets these checkpointed
1260
1260
* FPR registers. The userspace interface buffer layout is as follows.
@@ -1287,7 +1287,7 @@ static int tm_cvsx_set(struct task_struct *target,
1287
1287
buf , 0 , 32 * sizeof (double ));
1288
1288
if (!ret )
1289
1289
for (i = 0 ; i < 32 ; i ++ )
1290
- target -> thread .transact_fp .fpr [i ][TS_VSRLOWOFFSET ] = buf [i ];
1290
+ target -> thread .ckfp_state .fpr [i ][TS_VSRLOWOFFSET ] = buf [i ];
1291
1291
1292
1292
return ret ;
1293
1293
}
0 commit comments