diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-09 18:50:24 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-09 18:50:24 +0000 |
commit | 7cad98fb557d594a11f1b14e5304424a4798e798 (patch) | |
tree | 6f1848a320abd2c45b7d28d95046f5b835c1dffa /target-ppc/op_helper.c | |
parent | 1debf6fdf2f03009ff45fe20d2f27352ba288056 (diff) | |
download | qemu-7cad98fb557d594a11f1b14e5304424a4798e798.tar.gz qemu-7cad98fb557d594a11f1b14e5304424a4798e798.tar.bz2 qemu-7cad98fb557d594a11f1b14e5304424a4798e798.zip |
targe-ppc: optimize mfcr and mtcrf
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6793 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/op_helper.c')
-rw-r--r-- | target-ppc/op_helper.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c index f21f695db6..2c6a27fcba 100644 --- a/target-ppc/op_helper.c +++ b/target-ppc/op_helper.c @@ -54,30 +54,6 @@ void helper_raise_exception (uint32_t exception) } /*****************************************************************************/ -/* Registers load and stores */ -target_ulong helper_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); -} - -void helper_store_cr (target_ulong val, uint32_t mask) -{ - int i, sh; - - for (i = 0, sh = 7; i < 8; i++, sh--) { - if (mask & (1 << sh)) - env->crf[i] = (val >> (sh * 4)) & 0xFUL; - } -} - -/*****************************************************************************/ /* SPR accesses */ void helper_load_dump_spr (uint32_t sprn) { |