aboutsummaryrefslogtreecommitdiff
path: root/target-arm/iwmmxt_helper.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-09-12 21:13:13 +0200
committerStefan Weil <sw@weilnetz.de>2013-09-25 21:23:05 +0200
commit3df2b8fde949be86d8a78923c992fdd698d4ea4c (patch)
tree09c4db80712626acaed595506233559a2d4ebd2d /target-arm/iwmmxt_helper.c
parent6aa25b4a7bb10c48c3054f268d5be98e42ea42c0 (diff)
misc: Use new rotate functions
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'target-arm/iwmmxt_helper.c')
-rw-r--r--target-arm/iwmmxt_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-arm/iwmmxt_helper.c b/target-arm/iwmmxt_helper.c
index 7953b53f7e..e6cfa62da8 100644
--- a/target-arm/iwmmxt_helper.c
+++ b/target-arm/iwmmxt_helper.c
@@ -577,7 +577,7 @@ uint64_t HELPER(iwmmxt_rorl)(CPUARMState *env, uint64_t x, uint32_t n)
uint64_t HELPER(iwmmxt_rorq)(CPUARMState *env, uint64_t x, uint32_t n)
{
- x = (x >> n) | (x << (64 - n));
+ x = ror64(x, n);
env->iwmmxt.cregs[ARM_IWMMXT_wCASF] = NZBIT64(x);
return x;
}