Skip to contentSkip to conversation

x86-64/test_x86_emulate: fix blowfish test

PATCH New Jan Beulich 1 participant 1 message Nov 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86-64/test_x86_emulate: fix blowfish test

x86-64/test_x86_emulate: fix blowfish test

Incorrect register usage in the _start() wrapper caused the 64-bit execution emulation to fail.

tools/tests/x86_emulator/blowfish.c +1 -1
@@ -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"
     );

x86-64/test_x86_emulate: fix blowfish test

Incorrect register usage in the _start() wrapper caused the 64-bit execution emulation to fail.

tools/tests/x86_emulator/blowfish.c +1 -1
@@ -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"
     );

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel