ia64/xen-unstable

changeset 13425:e079f1ff6744

[TESTS] Fix native jump to 1MB absolute address in emulator test.
Fix typo in emulator comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@localhost.localdomain
date Sat Jan 13 21:36:31 2007 +0000 (2007-01-13)
parents a8f62eb194e3
children eb19c2745b80
files tools/tests/test_x86_emulator.c xen/arch/x86/x86_emulate.c
line diff
     1.1 --- a/tools/tests/test_x86_emulator.c	Sat Jan 13 20:55:39 2007 +0000
     1.2 +++ b/tools/tests/test_x86_emulator.c	Sat Jan 13 21:36:31 2007 +0000
     1.3 @@ -511,7 +511,7 @@ int main(int argc, char **argv)
     1.4  #ifndef __x86_64__
     1.5      printf("%-40s", "Testing blowfish native execution...");    
     1.6      asm volatile (
     1.7 -        "call 0x100000"
     1.8 +        "movl $0x100000,%%ecx; call *%%ecx"
     1.9          : "=a" (regs.eax), "=d" (regs.edx)
    1.10          : "0" (2), "1" (1) : "ecx" );
    1.11      if ( (regs.eax != 2) || (regs.edx != 1) )
     2.1 --- a/xen/arch/x86/x86_emulate.c	Sat Jan 13 20:55:39 2007 +0000
     2.2 +++ b/xen/arch/x86/x86_emulate.c	Sat Jan 13 21:36:31 2007 +0000
     2.3 @@ -853,7 +853,7 @@ x86_emulate(
     2.4          {
     2.5              /*
     2.6               * EA       += BitOffset DIV op_bytes*8
     2.7 -             * BitOffset = BitOffset MOD op_byte*8
     2.8 +             * BitOffset = BitOffset MOD op_bytes*8
     2.9               * DIV truncates towards negative infinity.
    2.10               * MOD always produces a positive result.
    2.11               */