[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [4406] fixed global variable handling with qemu load/ s
From: |
Stuart Brady |
Subject: |
Re: [Qemu-devel] [4406] fixed global variable handling with qemu load/ stores - initial global prologue/epilogue implementation |
Date: |
Sat, 10 May 2008 13:45:54 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Sat, May 10, 2008 at 10:52:06AM +0000, Fabrice Bellard wrote:
> -#ifdef HOST_HPPA
> - func_addr = (tcg_target_long)__canonicalize_funcptr_for_compare((void
> *)func_addr);
> -#endif
This was needed on HPPA (and possibly other archs), because a function
pointer can hold either the function's address, or that of a function
description (plabel), but we need the address of the function itself.
How would you prefer this to be handled? Would a 'tcg_const_funcptr'
macro added to tcg.h and used in tcg_gen_helper_*_*() be okay?
--
Stuart Brady