Commit 330c483bbf52a73428148321eb0b800d0faf4473

Authored by aurel32
1 parent 71e991fd

target-ppc: fix TCGv type in fcmpu/fcmpo

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6044 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 4 deletions
target-ppc/translate.c
... ... @@ -2249,7 +2249,7 @@ GEN_FLOAT_B(rim, 0x08, 0x0F, 1, PPC_FLOAT_EXT);
2249 2249 /* fcmpo */
2250 2250 GEN_HANDLER(fcmpo, 0x3F, 0x00, 0x01, 0x00600001, PPC_FLOAT)
2251 2251 {
2252   - TCGv crf;
  2252 + TCGv_i32 crf;
2253 2253 if (unlikely(!ctx->fpu_enabled)) {
2254 2254 gen_exception(ctx, POWERPC_EXCP_FPU);
2255 2255 return;
... ... @@ -2257,14 +2257,14 @@ GEN_HANDLER(fcmpo, 0x3F, 0x00, 0x01, 0x00600001, PPC_FLOAT)
2257 2257 gen_reset_fpstatus();
2258 2258 crf = tcg_const_i32(crfD(ctx->opcode));
2259 2259 gen_helper_fcmpo(cpu_fpr[rA(ctx->opcode)], cpu_fpr[rB(ctx->opcode)], crf);
2260   - tcg_temp_free(crf);
  2260 + tcg_temp_free_i32(crf);
2261 2261 gen_helper_float_check_status();
2262 2262 }
2263 2263  
2264 2264 /* fcmpu */
2265 2265 GEN_HANDLER(fcmpu, 0x3F, 0x00, 0x00, 0x00600001, PPC_FLOAT)
2266 2266 {
2267   - TCGv crf;
  2267 + TCGv_i32 crf;
2268 2268 if (unlikely(!ctx->fpu_enabled)) {
2269 2269 gen_exception(ctx, POWERPC_EXCP_FPU);
2270 2270 return;
... ... @@ -2272,7 +2272,7 @@ GEN_HANDLER(fcmpu, 0x3F, 0x00, 0x00, 0x00600001, PPC_FLOAT)
2272 2272 gen_reset_fpstatus();
2273 2273 crf = tcg_const_i32(crfD(ctx->opcode));
2274 2274 gen_helper_fcmpu(cpu_fpr[rA(ctx->opcode)], cpu_fpr[rB(ctx->opcode)], crf);
2275   - tcg_temp_free(crf);
  2275 + tcg_temp_free_i32(crf);
2276 2276 gen_helper_float_check_status();
2277 2277 }
2278 2278  
... ...