aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/op_helper.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-24 23:16:35 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-24 23:16:35 +0000
commit6676f42453b1a6b5c5e98d4795a230ffc0a783ed (patch)
tree1977ed9aef97c5b47af9dc831ba825d2bb95519a /target-ppc/op_helper.c
parent61c0480722bd86380e396db537bd8fea403b37db (diff)
Revert commits 5082 and 5083
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5084 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/op_helper.c')
-rw-r--r--target-ppc/op_helper.c46
1 files changed, 19 insertions, 27 deletions
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c
index 19fa6ac6ea..1c08172807 100644
--- a/target-ppc/op_helper.c
+++ b/target-ppc/op_helper.c
@@ -68,16 +68,16 @@ void do_print_mem_EA (target_ulong EA)
/*****************************************************************************/
/* Registers load and stores */
-target_ulong do_load_cr (void)
+void do_load_cr (void)
{
- return (env->crf[0] << 28) |
- (env->crf[1] << 24) |
- (env->crf[2] << 20) |
- (env->crf[3] << 16) |
- (env->crf[4] << 12) |
- (env->crf[5] << 8) |
- (env->crf[6] << 4) |
- (env->crf[7] << 0);
+ T0 = (env->crf[0] << 28) |
+ (env->crf[1] << 24) |
+ (env->crf[2] << 20) |
+ (env->crf[3] << 16) |
+ (env->crf[4] << 12) |
+ (env->crf[5] << 8) |
+ (env->crf[6] << 4) |
+ (env->crf[7] << 0);
}
void do_store_cr (uint32_t mask)
@@ -429,27 +429,27 @@ void do_srad (void)
}
#endif
-target_ulong do_popcntb (target_ulong t0)
+void do_popcntb (void)
{
uint32_t ret;
int i;
ret = 0;
for (i = 0; i < 32; i += 8)
- ret |= ctpop8((t0 >> i) & 0xFF) << i;
- return ret;
+ ret |= ctpop8((T0 >> i) & 0xFF) << i;
+ T0 = ret;
}
#if defined(TARGET_PPC64)
-target_ulong do_popcntb_64 (target_ulong t0)
+void do_popcntb_64 (void)
{
uint64_t ret;
int i;
ret = 0;
for (i = 0; i < 64; i += 8)
- ret |= ctpop8((t0 >> i) & 0xFF) << i;
- return ret;
+ ret |= ctpop8((T0 >> i) & 0xFF) << i;
+ T0 = ret;
}
#endif
@@ -1404,23 +1404,15 @@ void do_fcmpo (void)
#if !defined (CONFIG_USER_ONLY)
void cpu_dump_rfi (target_ulong RA, target_ulong msr);
-void do_store_msr (target_ulong t0)
+void do_store_msr (void)
{
- t0 = hreg_store_msr(env, t0, 0);
- if (t0 != 0) {
+ T0 = hreg_store_msr(env, T0, 0);
+ if (T0 != 0) {
env->interrupt_request |= CPU_INTERRUPT_EXITTB;
- do_raise_exception(t0);
+ do_raise_exception(T0);
}
}
-#if defined (TARGET_PPC64)
-void do_store_msr_32 (target_ulong t0)
-{
- t0 = (env->msr & ~0xFFFFFFFFULL) | (t0 & 0xFFFFFFFF);
- do_store_msr(t0);
-}
-#endif
-
static always_inline void __do_rfi (target_ulong nip, target_ulong msr,
target_ulong msrm, int keep_msrh)
{