[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers |
Date: |
Wed, 28 Sep 2011 15:47:19 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 |
On 09/28/2011 03:07 PM, Jan Kiszka wrote:
> On 2011-09-28 17:19, Richard Henderson wrote:
>> On 09/28/2011 07:33 AM, Jan Kiszka wrote:
>>>> I don't particularly care for the 3 different opcodes. Perhaps
>>>> we'd be better off with an inline predicate for when the deposit
>>>> opcode is "valid"?
>>>
>>> We still need to dispatch at tcg generation time which variant is valid. Or
>>> what do you have in mind?
>>
>> Yes, but we'd know at tcg generation time that it *does* fit one of
>> the few patterns you point out.
>>
>> The predicate would be used in e.g. tcg_gen_deposit_i32 to select
>> either INDEX_op_deposit_i32 or the and/shift/and/or fallback.
>
> I think I'm slowly starting to understand:
>
> #define TCG_TARGET_HAS_deposit_i32(ofs, len) \
> (((ofs) == 0 && (len) == 8 && TCG_TARGET_HAS_deposit8l_i32) || \
> ...)
>
> defined by the i386 tcg target, right?
Something like that. Except without the TCG_TARGET_HAS_deposit8l_i32.
r~
- [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers, Jan Kiszka, 2011/09/28
- Re: [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers, Richard Henderson, 2011/09/28
- Re: [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers, Jan Kiszka, 2011/09/28
- Re: [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers, Richard Henderson, 2011/09/28
- Re: [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers, Jan Kiszka, 2011/09/28
- Re: [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers,
Richard Henderson <=
- [Qemu-devel] [PATCH v2] tcg-i386: Introduce limited deposit support, Jan Kiszka, 2011/09/29
- Re: [Qemu-devel] [PATCH v2] tcg-i386: Introduce limited deposit support, Richard Henderson, 2011/09/29
- Re: [Qemu-devel] [PATCH v2] tcg-i386: Introduce limited deposit support, Jan Kiszka, 2011/09/29
- [Qemu-devel] [PATCH v3] tcg-i386: Introduce limited deposit support, Jan Kiszka, 2011/09/29
- Re: [Qemu-devel] [PATCH v3] tcg-i386: Introduce limited deposit support, Richard Henderson, 2011/09/29
- [Qemu-devel] [PATCH v4] tcg-i386: Introduce limited deposit support, Jan Kiszka, 2011/09/29
- Re: [Qemu-devel] [PATCH v4] tcg-i386: Introduce limited deposit support, Richard Henderson, 2011/09/29