microblaze: Fix 3rd addkc arg when rd is r0
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>
Sat, 22 Jan 2011 11:35:48 +0000 (12:35 +0100)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Sat, 22 Jan 2011 11:35:48 +0000 (12:35 +0100)
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-microblaze/translate.c

index d983c8b0b299f6f303813bf806b615b75c00c44e..264395b74c2f4aa55031aab7ff3c79f1a8faf333 100644 (file)
@@ -238,8 +238,7 @@ static void dec_add(DisasContext *dc)
         write_carry(dc, ncf);
         tcg_temp_free(ncf);
     } else {
-        gen_helper_addkc(cf, cpu_R[dc->ra], *(dec_alu_op_b(dc)),
-                         tcg_const_tl(cf));
+        gen_helper_addkc(cf, cpu_R[dc->ra], *(dec_alu_op_b(dc)), cf);
         write_carry(dc, cf);
     }
     tcg_temp_free(cf);