[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>
- [PATCH v6 04/26] plugins: Drop tcg_flags from struct qemu_plugin_dyn_cb, (continued)
- [PATCH v6 08/26] tcg: Build ffi data structures for helpers, Richard Henderson, 2021/05/02
- [PATCH v6 10/26] tcg/tci: Move call-return regs to end of tcg_target_reg_alloc_order, Richard Henderson, 2021/05/02
- [PATCH v6 13/26] tcg/tci: Emit setcond before brcond, Richard Henderson, 2021/05/02
- [PATCH v6 11/26] tcg/tci: Use ffi for calls, Richard Henderson, 2021/05/02
- [PATCH v6 14/26] tcg/tci: Remove tci_write_reg, Richard Henderson, 2021/05/02
- [PATCH v6 09/26] tcg/tci: Improve tcg_target_call_clobber_regs, Richard Henderson, 2021/05/02
- [PATCH v6 12/26] tcg/tci: Reserve r13 for a temporary, Richard Henderson, 2021/05/02