aboutsummaryrefslogtreecommitdiff
path: root/target-microblaze/translate.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-09-03 11:18:55 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-09-03 11:18:55 +0200
commitee7dbcf8344d826263ccedf57323c4d198a2113f (patch)
treeeaddd248ff8d06e9a8aceb08e08aa85cd59d058c /target-microblaze/translate.c
parent1567a0056889b7a2660114d4d50400614fbf0d9e (diff)
microblaze: Correct mfs into r0.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'target-microblaze/translate.c')
-rw-r--r--target-microblaze/translate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c
index 16b282f577..acf3f8db5d 100644
--- a/target-microblaze/translate.c
+++ b/target-microblaze/translate.c
@@ -500,6 +500,10 @@ static void dec_msr(DisasContext *dc)
break;
}
}
+
+ if (dc->rd == 0) {
+ tcg_gen_movi_tl(cpu_R[0], 0);
+ }
}
/* 64-bit signed mul, lower result in d and upper in d2. */