From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [5756] target-ppc: fix TCG type errors introduced in r5754
Date: Wed, 19 Nov 2008 17:54:49 +0000 [thread overview]
Message-ID: <E1L2rGL-0003iZ-EE@cvs.savannah.gnu.org> (raw)
Revision: 5756
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5756
Author: aurel32
Date: 2008-11-19 17:54:49 +0000 (Wed, 19 Nov 2008)
Log Message:
-----------
target-ppc: fix TCG type errors introduced in r5754
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Modified Paths:
--------------
trunk/target-ppc/translate.c
Modified: trunk/target-ppc/translate.c
===================================================================
--- trunk/target-ppc/translate.c 2008-11-19 17:41:58 UTC (rev 5755)
+++ trunk/target-ppc/translate.c 2008-11-19 17:54:49 UTC (rev 5756)
@@ -243,31 +243,31 @@
#endif
}
-static always_inline void gen_compute_fprf (TCGv arg, int set_fprf, int set_rc)
+static always_inline void gen_compute_fprf (TCGv_i64 arg, int set_fprf, int set_rc)
{
- TCGv t0 = tcg_temp_new_i32();
+ TCGv_i32 t0 = tcg_temp_new_i32();
if (set_fprf != 0) {
/* This case might be optimized later */
#if defined(OPTIMIZE_FPRF_UPDATE)
*gen_fprf_ptr++ = gen_opc_ptr;
#endif
- tcg_gen_movi_tl(t0, 1);
+ tcg_gen_movi_i32(t0, 1);
gen_helper_compute_fprf(t0, arg, t0);
if (unlikely(set_rc)) {
- tcg_gen_movi_i32(cpu_crf[1], t0);
+ tcg_gen_mov_i32(cpu_crf[1], t0);
}
gen_helper_float_check_status();
} else if (unlikely(set_rc)) {
/* We always need to compute fpcc */
- tcg_gen_movi_tl(t0, 0);
+ tcg_gen_movi_i32(t0, 0);
gen_helper_compute_fprf(t0, arg, t0);
- tcg_gen_movi_i32(cpu_crf[1], t0);
+ tcg_gen_mov_i32(cpu_crf[1], t0);
if (set_fprf)
gen_helper_float_check_status();
}
- tcg_temp_free(t0);
+ tcg_temp_free_i32(t0);
}
static always_inline void gen_optimize_fprf (void)
@@ -2385,9 +2385,9 @@
gen_reset_fpstatus();
/* XXX: we pretend we can only do IEEE floating-point computations */
if (likely(crb != FPSCR_FEX && crb != FPSCR_VX && crb != FPSCR_NI)) {
- TCGv t0 = tcg_const_tl(crb);
+ TCGv_i32 t0 = tcg_const_i32(crb);
gen_helper_fpscr_setbit(t0);
- tcg_temp_free(t0);
+ tcg_temp_free_i32(t0);
}
if (unlikely(Rc(ctx->opcode) != 0)) {
tcg_gen_shri_i32(cpu_crf[1], cpu_fpscr, FPSCR_OX);
@@ -2399,7 +2399,7 @@
/* mtfsf */
GEN_HANDLER(mtfsf, 0x3F, 0x07, 0x16, 0x02010000, PPC_FLOAT)
{
- TCGv t0;
+ TCGv_i32 t0;
if (unlikely(!ctx->fpu_enabled)) {
GEN_EXCP_NO_FP(ctx);
@@ -2409,7 +2409,7 @@
gen_reset_fpstatus();
t0 = tcg_const_i32(FM(ctx->opcode));
gen_helper_store_fpscr(cpu_fpr[rB(ctx->opcode)], t0);
- tcg_temp_free(t0);
+ tcg_temp_free_i32(t0);
if (unlikely(Rc(ctx->opcode) != 0)) {
tcg_gen_shri_i32(cpu_crf[1], cpu_fpscr, FPSCR_OX);
}
@@ -2421,7 +2421,8 @@
GEN_HANDLER(mtfsfi, 0x3F, 0x06, 0x04, 0x006f0800, PPC_FLOAT)
{
int bf, sh;
- TCGv t0, t1;
+ TCGv_i64 t0;
+ TCGv_i32 t1;
if (unlikely(!ctx->fpu_enabled)) {
GEN_EXCP_NO_FP(ctx);
@@ -2431,11 +2432,11 @@
sh = 7 - bf;
gen_optimize_fprf();
gen_reset_fpstatus();
- t0 = tcg_const_tl(FPIMM(ctx->opcode) << (4 * sh));
+ t0 = tcg_const_i64(FPIMM(ctx->opcode) << (4 * sh));
t1 = tcg_const_i32(1 << sh);
gen_helper_store_fpscr(t0, t1);
- tcg_temp_free(t0);
- tcg_temp_free(t1);
+ tcg_temp_free_i64(t0);
+ tcg_temp_free_i32(t1);
if (unlikely(Rc(ctx->opcode) != 0)) {
tcg_gen_shri_i32(cpu_crf[1], cpu_fpscr, FPSCR_OX);
}
reply other threads:[~2008-11-19 17:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1L2rGL-0003iZ-EE@cvs.savannah.gnu.org \
--to=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).