mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
tcg: add vaddr type for helpers
Defined as an alias of i32/i64 depending on host pointer size. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20250512180502.2395029-13-pierrick.bouvier@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
b757ae80c6
commit
21a75f792f
4 changed files with 31 additions and 0 deletions
|
@ -58,6 +58,17 @@
|
|||
# define dh_ctype_tl target_ulong
|
||||
#endif /* COMPILING_PER_TARGET */
|
||||
|
||||
#if __SIZEOF_POINTER__ == 4
|
||||
# define dh_alias_vaddr i32
|
||||
# define dh_typecode_vaddr dh_typecode_i32
|
||||
#elif __SIZEOF_POINTER__ == 8
|
||||
# define dh_alias_vaddr i64
|
||||
# define dh_typecode_vaddr dh_typecode_i64
|
||||
#else
|
||||
# error "sizeof pointer is different from {4,8}"
|
||||
#endif /* __SIZEOF_POINTER__ */
|
||||
# define dh_ctype_vaddr uintptr_t
|
||||
|
||||
/* We can't use glue() here because it falls foul of C preprocessor
|
||||
recursive expansion rules. */
|
||||
#define dh_retvar_decl0_void void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue