summaryrefslogtreecommitdiff
path: root/target-microblaze
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2011-01-22 12:35:48 +0100
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2011-01-22 12:35:48 +0100
commit7e9e4330080f40a964cfed2b334b5e231e967792 (patch)
treea045c5b92ccafc453617869d9c991ecb76cc14ec /target-microblaze
parent40cbf5b7098981f66ef161e6ce7a9f6770537ea4 (diff)
downloadqemu-7e9e4330080f40a964cfed2b334b5e231e967792.tar.gz
qemu-7e9e4330080f40a964cfed2b334b5e231e967792.tar.bz2
qemu-7e9e4330080f40a964cfed2b334b5e231e967792.zip
microblaze: Fix 3rd addkc arg when rd is r0
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'target-microblaze')
-rw-r--r--target-microblaze/translate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c
index d983c8b0b2..264395b74c 100644
--- a/target-microblaze/translate.c
+++ b/target-microblaze/translate.c
@@ -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);