From: "Jan Beulich" Subject: [PATCH] x86-64/test_x86_emulate: fix blowfish test Date: Wed, 16 Nov 2011 13:47:10 +0000 Message-ID: <4EC3CCEE02000078000614C5@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part95BA15CE.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part95BA15CE.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline x86-64/test_x86_emulate: fix blowfish test Incorrect register usage in the _start() wrapper caused the 64-bit execution emulation to fail. Signed-off-by: Jan Beulich --- a/tools/tests/x86_emulator/blowfish.c +++ b/tools/tests/x86_emulator/blowfish.c @@ -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" ); --=__Part95BA15CE.0__= Content-Type: text/plain; name="test-x86-emul-blowfish-x86_64.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="test-x86-emul-blowfish-x86_64.patch" x86-64/test_x86_emulate: fix blowfish test=0A=0AIncorrect register usage = in the _start() wrapper caused the 64-bit=0Aexecution emulation to = fail.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- = a/tools/tests/x86_emulator/blowfish.c=0A+++ b/tools/tests/x86_emulator/blow= fish.c=0A@@ -30,7 +30,7 @@ asm (=0A #else=0A "shlq $32,%rdx; movl = %eax,%edi; orq %rdx,%rdi; "=0A "call blowfish_test; "=0A- "movq = %rax,%rdi; movl %eax,%eax; shrq $32,%rdx; "=0A+ "movq %rax,%rdx; movl = %eax,%eax; shrq $32,%rdx; "=0A #endif=0A "ret"=0A );=0A --=__Part95BA15CE.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part95BA15CE.0__=--