qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v6 07/26] tcg: Add tcg_call_func


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v6 07/26] tcg: Add tcg_call_func
Date: Sun, 16 May 2021 14:48:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 5/16/21 3:21 AM, Richard Henderson wrote:
> On 5/3/21 4:50 PM, Philippe Mathieu-Daudé wrote:
>> Hi Richard,
>>
>> On 5/3/21 1:57 AM, Richard Henderson wrote:
>>> Signed-off-by: Richard Henderson<richard.henderson@linaro.org>
>>> ---
>>>   tcg/internal.h | 5 +++++
>>>   tcg/tcg.c      | 5 ++---
>>>   2 files changed, 7 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/tcg/internal.h b/tcg/internal.h
>>> index c2d5e9c42f..cd128e2a83 100644
>>> --- a/tcg/internal.h
>>> +++ b/tcg/internal.h
>>> @@ -32,6 +32,11 @@ typedef struct TCGHelperInfo {
>>>       unsigned typemask;
>>>   } TCGHelperInfo;
>>>   +static inline void *tcg_call_func(TCGOp *op)
>>> +{
>>> +    return (void *)(uintptr_t)op->args[TCGOP_CALLO(op) +
>>> TCGOP_CALLI(op)];
>> Why not return tcg_insn_unit* type?
> 
> That's a fairly tcg code generation type -- this is used for more than
> that.  I think it's more natural to use void* when we don't know what
> the real type.

OK.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]