]> xenbits.xensource.com Git - xen.git/commitdiff
x86-64/test_x86_emulate: fix blowfish test
authorJan Beulich <jbeulich@suse.com>
Wed, 16 Nov 2011 15:20:25 +0000 (15:20 +0000)
committerJan Beulich <jbeulich@suse.com>
Wed, 16 Nov 2011 15:20:25 +0000 (15:20 +0000)
Incorrect register usage in the _start() wrapper caused the 64-bit
execution emulation to fail.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Keir Fraser <keir@xen.org>
tools/tests/x86_emulator/blowfish.c

index 211831d4d27050a1e89ecb30d871d7be958e8adb..8b9280c063c2f30f6b9be9cf2e757282f442cbdc 100644 (file)
@@ -30,7 +30,7 @@ asm (
 #else
     "shlq $32,%rdx; movl %eax,%edi; orq %rdx,%rdi; "
     "call blowfish_test; "
-    "movq %rax,%rdi; movl %eax,%eax; shrq $32,%rdx; "
+    "movq %rax,%rdx; movl %eax,%eax; shrq $32,%rdx; "
 #endif
     "ret"
     );