]> Git Repo - qemu.git/blobdiff - target-arm/iwmmxt_helper.c
target-arm: Remove unused ARMCPUState sr substruct
[qemu.git] / target-arm / iwmmxt_helper.c
index 1dd8d1a3af46f5f6b0d01f5c5727a8912ee0d377..e6cfa62da8b52b84dec2746c51ddebacf171aa98 100644 (file)
@@ -23,7 +23,7 @@
 #include <stdio.h>
 
 #include "cpu.h"
-#include "exec-all.h"
+#include "exec/exec-all.h"
 #include "helper.h"
 
 /* iwMMXt macros extracted from GNU gdb.  */
@@ -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;
 }
This page took 0.023872 seconds and 4 git commands to generate.