aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/vis_helper.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-10-18 09:41:30 -0700
committerRichard Henderson <rth@twiddle.net>2011-10-26 14:00:19 -0700
commit50c796f9d842bbefeb39ac64d7fe961056ee0267 (patch)
tree7eec0b4fe5326c686c4be974dc1dafff18015e29 /target-sparc/vis_helper.c
parent793a137a41ad4125011c7022cf16a1baa40a5ab6 (diff)
target-sparc: Implement FALIGNDATA inline.
This is a relatively simple sequence of shifts. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-sparc/vis_helper.c')
-rw-r--r--target-sparc/vis_helper.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/target-sparc/vis_helper.c b/target-sparc/vis_helper.c
index 7830120991..a992c293af 100644
--- a/target-sparc/vis_helper.c
+++ b/target-sparc/vis_helper.c
@@ -41,18 +41,6 @@ target_ulong helper_array8(target_ulong pixel_addr, target_ulong cubesize)
GET_FIELD_SP(pixel_addr, 11, 12);
}
-uint64_t helper_faligndata(CPUState *env, uint64_t src1, uint64_t src2)
-{
- uint64_t tmp;
-
- tmp = src1 << ((env->gsr & 7) * 8);
- /* on many architectures a shift of 64 does nothing */
- if ((env->gsr & 7) != 0) {
- tmp |= src2 >> (64 - (env->gsr & 7) * 8);
- }
- return tmp;
-}
-
#ifdef HOST_WORDS_BIGENDIAN
#define VIS_B64(n) b[7 - (n)]
#define VIS_W64(n) w[3 - (n)]