Revision 00f82b8a target-i386/helper.c

b/target-i386/helper.c
1747 1747
        break;
1748 1748
    case 0x80000008:
1749 1749
        /* virtual & phys address size in low 2 bytes. */
1750
        EAX = 0x00003028;
1750
/* XXX: This value must match the one used in the MMU code. */ 
1751
#if defined(TARGET_X86_64)
1752
#  if defined(USE_KQEMU)
1753
        EAX = 0x00003020;	/* 48 bits virtual, 32 bits physical */
1754
#  else
1755
/* XXX: The physical address space is limited to 42 bits in exec.c. */
1756
        EAX = 0x00003028;	/* 48 bits virtual, 40 bits physical */
1757
#  endif
1758
#else
1759
# if defined(USE_KQEMU)
1760
        EAX = 0x00000020;	/* 32 bits physical */
1761
#  else
1762
        EAX = 0x00000024;	/* 36 bits physical */
1763
#  endif
1764
#endif
1751 1765
        EBX = 0;
1752 1766
        ECX = 0;
1753 1767
        EDX = 0;

Also available in: Unified diff