target-i386: Provide TCG_PHYS_ADDR_BITS

Provide a constant for the number of address bits supported under TCG.

Backports commit 709787ee997f0a0ccab78e0edaf10d48929151ee from qemu
This commit is contained in:
Dr. David Alan Gilbert 2018-02-25 20:23:19 -05:00 committed by Lioncash
parent 23ab6d81f9
commit 7cb359cc19
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -1409,11 +1409,13 @@ uint64_t cpu_get_tsc(CPUX86State *env);
/* XXX: This value should match the one returned by CPUID
* and in exec.c */
# if defined(TARGET_X86_64)
# define PHYS_ADDR_MASK 0xffffffffffLL
# define TCG_PHYS_ADDR_BITS 40
# else
# define PHYS_ADDR_MASK 0xfffffffffLL
# define TCG_PHYS_ADDR_BITS 36
# endif
#define PHYS_ADDR_MASK MAKE_64BIT_MASK(0, TCG_PHYS_ADDR_BITS)
CPUX86State *cpu_x86_init_user(struct uc_struct *uc, const char *cpu_model);
#define cpu_init cpu_x86_init_user