[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [TESTS] Fix native jump to 1MB absolute address in emulator test.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxxx
# Date 1168724191 0
# Node ID e079f1ff6744bbaab19bf3d045efd811144d0403
# Parent  a8f62eb194e3e1cbbcfcb59ed5abd32b73b0e33e
[TESTS] Fix native jump to 1MB absolute address in emulator test.
Fix typo in emulator comment.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/tests/test_x86_emulator.c |    2 +-
 xen/arch/x86/x86_emulate.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -r a8f62eb194e3 -r e079f1ff6744 tools/tests/test_x86_emulator.c
--- a/tools/tests/test_x86_emulator.c   Sat Jan 13 20:55:39 2007 +0000
+++ b/tools/tests/test_x86_emulator.c   Sat Jan 13 21:36:31 2007 +0000
@@ -511,7 +511,7 @@ int main(int argc, char **argv)
 #ifndef __x86_64__
     printf("%-40s", "Testing blowfish native execution...");    
     asm volatile (
-        "call 0x100000"
+        "movl $0x100000,%%ecx; call *%%ecx"
         : "=a" (regs.eax), "=d" (regs.edx)
         : "0" (2), "1" (1) : "ecx" );
     if ( (regs.eax != 2) || (regs.edx != 1) )
diff -r a8f62eb194e3 -r e079f1ff6744 xen/arch/x86/x86_emulate.c
--- a/xen/arch/x86/x86_emulate.c        Sat Jan 13 20:55:39 2007 +0000
+++ b/xen/arch/x86/x86_emulate.c        Sat Jan 13 21:36:31 2007 +0000
@@ -853,7 +853,7 @@ x86_emulate(
         {
             /*
              * EA       += BitOffset DIV op_bytes*8
-             * BitOffset = BitOffset MOD op_byte*8
+             * BitOffset = BitOffset MOD op_bytes*8
              * DIV truncates towards negative infinity.
              * MOD always produces a positive result.
              */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.