OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d03c98d
)
Fix operands of RECIP2.S and RECIP2.PS
author
Richard Sandiford
<rdsandiford@googlemail.com>
Mon, 27 Aug 2012 08:50:38 +0000
(09:50 +0100)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Mon, 27 Aug 2012 10:03:17 +0000
(12:03 +0200)
Read the second input operand of RECIP2.S and RECIP2.PS from FT rather
than FD. RECIP2.D is already correct.
Signed-off-by: Richard Sandiford <rdsandiford@googlemail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/translate.c
patch
|
blob
|
history
diff --git
a/target-mips/translate.c
b/target-mips/translate.c
index
d643676
..
2589f63
100644
(file)
--- a/
target-mips/translate.c
+++ b/
target-mips/translate.c
@@
-6805,7
+6805,7
@@
static void gen_farith (DisasContext *ctx, enum fopcode op1,
TCGv_i32 fp1 = tcg_temp_new_i32();
gen_load_fpr32(fp0, fs);
- gen_load_fpr32(fp1, f
d
);
+ gen_load_fpr32(fp1, f
t
);
gen_helper_float_recip2_s(fp0, fp0, fp1);
tcg_temp_free_i32(fp1);
gen_store_fpr32(fp0, fd);
@@
-7543,7
+7543,7
@@
static void gen_farith (DisasContext *ctx, enum fopcode op1,
TCGv_i64 fp1 = tcg_temp_new_i64();
gen_load_fpr64(ctx, fp0, fs);
- gen_load_fpr64(ctx, fp1, f
d
);
+ gen_load_fpr64(ctx, fp1, f
t
);
gen_helper_float_recip2_ps(fp0, fp0, fp1);
tcg_temp_free_i64(fp1);
gen_store_fpr64(ctx, fp0, fd);