mirror of https://github.com/xemu-project/xemu.git
exec-all: Widen tb_page_addr_t for user-only
This is a step toward making TranslationBlock agnostic to the address size of the guest. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
0a18945d03
commit
087e2341fb
|
@ -31,8 +31,8 @@
|
||||||
addresses in userspace mode. Define tb_page_addr_t to be an appropriate
|
addresses in userspace mode. Define tb_page_addr_t to be an appropriate
|
||||||
type. */
|
type. */
|
||||||
#if defined(CONFIG_USER_ONLY)
|
#if defined(CONFIG_USER_ONLY)
|
||||||
typedef abi_ulong tb_page_addr_t;
|
typedef vaddr tb_page_addr_t;
|
||||||
#define TB_PAGE_ADDR_FMT TARGET_ABI_FMT_lx
|
#define TB_PAGE_ADDR_FMT "%" VADDR_PRIx
|
||||||
#else
|
#else
|
||||||
typedef ram_addr_t tb_page_addr_t;
|
typedef ram_addr_t tb_page_addr_t;
|
||||||
#define TB_PAGE_ADDR_FMT RAM_ADDR_FMT
|
#define TB_PAGE_ADDR_FMT RAM_ADDR_FMT
|
||||||
|
|
Loading…
Reference in New Issue