mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 06:25:12 +00:00
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:
parent
23ab6d81f9
commit
7cb359cc19
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue