[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 05/18] tcg: Define TCG_TYPE_PTR properly
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH 05/18] tcg: Define TCG_TYPE_PTR properly |
Date: |
Thu, 29 Aug 2013 12:53:31 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Aug 22, 2013 at 09:58:36AM -0700, Richard Henderson wrote:
> Signed-off-by: Richard Henderson <address@hidden>
> ---
> tcg/tcg.h | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/tcg/tcg.h b/tcg/tcg.h
> index bfe420a..b71dcf4 100644
> --- a/tcg/tcg.h
> +++ b/tcg/tcg.h
> @@ -173,9 +173,12 @@ typedef enum TCGType {
> TCG_TYPE_REG = TCG_TYPE_I64,
> #endif
>
> - /* An alias for the size of the native pointer. We don't currently
> - support any hosts with 64-bit registers and 32-bit pointers. */
> - TCG_TYPE_PTR = TCG_TYPE_REG,
> + /* An alias for the size of the native pointer. */
> +#if UINTPTR_MAX == UINT32_MAX
> + TCG_TYPE_PTR = TCG_TYPE_I32,
> +#else
> + TCG_TYPE_PTR = TCG_TYPE_I64,
> +#endif
>
> /* An alias for the size of the target "long", aka register. */
> #if TARGET_LONG_BITS == 64
Reviewed-by: Aurelien Jarno <address@hidden>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net
- Re: [Qemu-devel] [PATCH 01/18] qtest: Fix FMT_timeval vs time_t, (continued)
[Qemu-devel] [PATCH 02/18] tcg: Change flush_icache_range arguments to uintptr_t, Richard Henderson, 2013/08/22
[Qemu-devel] [PATCH 04/18] tcg: Fix next_tb type in cpu_exec, Richard Henderson, 2013/08/22
[Qemu-devel] [PATCH 03/18] tcg: Change tcg_qemu_tb_exec return to uintptr_t, Richard Henderson, 2013/08/22
[Qemu-devel] [PATCH 05/18] tcg: Define TCG_TYPE_PTR properly, Richard Henderson, 2013/08/22
- Re: [Qemu-devel] [PATCH 05/18] tcg: Define TCG_TYPE_PTR properly,
Aurelien Jarno <=
[Qemu-devel] [PATCH 06/18] tcg: Define TCG_ptr properly, Richard Henderson, 2013/08/22
[Qemu-devel] [PATCH 07/18] tcg: Change frame pointer offsets to intptr_t, Richard Henderson, 2013/08/22
[Qemu-devel] [PATCH 08/18] tcg: Change memory offsets to intptr_t, Richard Henderson, 2013/08/22
[Qemu-devel] [PATCH 09/18] tcg: Change relocation offsets to intptr_t, Richard Henderson, 2013/08/22
[Qemu-devel] [PATCH 10/18] tcg: Use uintptr_t in TCGHelperInfo, Richard Henderson, 2013/08/22