[TESTS] Fix native jump to 1MB absolute address in emulator test.
authorkaf24@localhost.localdomain <kaf24@localhost.localdomain>
Sat, 13 Jan 2007 21:36:31 +0000 (21:36 +0000)
committerkaf24@localhost.localdomain <kaf24@localhost.localdomain>
Sat, 13 Jan 2007 21:36:31 +0000 (21:36 +0000)
Fix typo in emulator comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/tests/test_x86_emulator.c
xen/arch/x86/x86_emulate.c

index b1c39d370ab166c30f5009af1f0196674c401fcd..a59bc467e28d020af4d66cad04d1249cd9308250 100644 (file)
@@ -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) )
index 200b6c4aac0c6d77256649ee80e3c6e7534fe9be..1cdf67248aaf4f8d8ef3f1f9a05dda30f1d7344a 100644 (file)
@@ -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.
              */