diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-06 12:19:14 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-06 12:19:14 +0000 |
commit | 22e0e173376d702bdd9757d308924b6df7cd6529 (patch) | |
tree | 102fa053e511450ad57df19e14bbfbf77db7a7d8 /target-ppc/op.c | |
parent | 3b63c04e1bcf626ca24d3fa92b5872c73f1ba8d5 (diff) |
target-ppc: convert POWER bridge instructions to TCG
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5891 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/op.c')
-rw-r--r-- | target-ppc/op.c | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/target-ppc/op.c b/target-ppc/op.c index 9d9661a8ec..d3df7fc0c8 100644 --- a/target-ppc/op.c +++ b/target-ppc/op.c @@ -370,112 +370,6 @@ void OPPROTO op_store_601_batu (void) } #endif /* !defined(CONFIG_USER_ONLY) */ -/* PowerPC 601 specific instructions (POWER bridge) */ -/* XXX: those micro-ops need tests ! */ -void OPPROTO op_POWER_abs (void) -{ - if ((int32_t)T0 == INT32_MIN) - T0 = INT32_MAX; - else if ((int32_t)T0 < 0) - T0 = -T0; - RETURN(); -} - -void OPPROTO op_POWER_abso (void) -{ - do_POWER_abso(); - RETURN(); -} - -void OPPROTO op_POWER_clcs (void) -{ - do_POWER_clcs(); - RETURN(); -} - -void OPPROTO op_POWER_div (void) -{ - do_POWER_div(); - RETURN(); -} - -void OPPROTO op_POWER_divo (void) -{ - do_POWER_divo(); - RETURN(); -} - -void OPPROTO op_POWER_divs (void) -{ - do_POWER_divs(); - RETURN(); -} - -void OPPROTO op_POWER_divso (void) -{ - do_POWER_divso(); - RETURN(); -} - -void OPPROTO op_POWER_doz (void) -{ - if ((int32_t)T1 > (int32_t)T0) - T0 = T1 - T0; - else - T0 = 0; - RETURN(); -} - -void OPPROTO op_POWER_dozo (void) -{ - do_POWER_dozo(); - RETURN(); -} - -void OPPROTO op_POWER_maskg (void) -{ - do_POWER_maskg(); - RETURN(); -} - -void OPPROTO op_POWER_maskir (void) -{ - T0 = (T0 & ~T2) | (T1 & T2); - RETURN(); -} - -void OPPROTO op_POWER_mul (void) -{ - uint64_t tmp; - - tmp = (uint64_t)T0 * (uint64_t)T1; - env->spr[SPR_MQ] = tmp >> 32; - T0 = tmp; - RETURN(); -} - -void OPPROTO op_POWER_mulo (void) -{ - do_POWER_mulo(); - RETURN(); -} - -void OPPROTO op_POWER_nabs (void) -{ - if (T0 > 0) - T0 = -T0; - RETURN(); -} - -void OPPROTO op_POWER_nabso (void) -{ - /* nabs never overflows */ - if (T0 > 0) - T0 = -T0; - env->xer &= ~(1 << XER_OV); - RETURN(); -} - /* POWER instructions not implemented in PowerPC 601 */ #if !defined(CONFIG_USER_ONLY) void OPPROTO op_POWER_mfsri (void) @@ -484,12 +378,6 @@ void OPPROTO op_POWER_mfsri (void) T0 = env->sr[T1]; RETURN(); } - -void OPPROTO op_POWER_rac (void) -{ - do_POWER_rac(); - RETURN(); -} #endif /* PowerPC 4xx specific micro-ops */ |