[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 01/50] trace: expand mem_info:size_shift to 3
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH v3 01/50] trace: expand mem_info:size_shift to 3 bits |
Date: |
Mon, 17 Jun 2019 16:29:15 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
On 6/17/19 1:22 AM, Alex Bennée wrote:
>
> Richard Henderson <address@hidden> writes:
>
>> On 6/14/19 10:11 AM, Alex Bennée wrote:
>>> From: "Emilio G. Cota" <address@hidden>
>>>
>>> This will allow us to trace 16B-long memory accesses.
>>>
>>> Reviewed-by: Alex Bennée <address@hidden>
>>> Signed-off-by: Emilio G. Cota <address@hidden>
>>> ---
>>> trace-events | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/trace-events b/trace-events
>>> index 844ee58dd9..037169aab3 100644
>>> --- a/trace-events
>>> +++ b/trace-events
>>> @@ -159,7 +159,7 @@ vcpu guest_cpu_reset(void)
>>> # Access information can be parsed as:
>>> #
>>> # struct mem_info {
>>> -# uint8_t size_shift : 2; /* interpreted as "1 << size_shift" bytes */
>>> +# uint8_t size_shift : 3; /* interpreted as "1 << size_shift" bytes */
>>> # bool sign_extend: 1; /* sign-extended */
>>> # uint8_t endianness : 1; /* 0: little, 1: big */
>>> # bool store : 1; /* wheter it's a store operation */
>>>
>>
>> Well, 128B-long memory accesses. But SVE supports 256B memory accesses
>> already. So why not add one more bit now.
>
> Good point.
>
> Do we have any architectures that do load/stores that are not power of
> 2? I guess the SVE non-faulting accesses are treated as a series of elem
> size accesses.
Yes, non-faults are in addition predicated, so each element is considered
individually.
Even the SVE non-predicated load/stores can technically be considered a
sequence of byte operations. Which, I suppose could be helpful, because SVE
can otherwise be configured to do non-power-of-2 operations.
r~
- [Qemu-devel] [PATCH v3 00/50] tcg plugin support, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 04/50] translate-all: use cpu_in_exclusive_work_context() in tb_flush, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 06/50] configure: add --enable-plugins (MOVE TO END), Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 03/50] cpu: introduce cpu_in_exclusive_work_context(), Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 05/50] docs/devel: add plugins.rst design document, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 12/50] cputlb: introduce get_page_addr_code_hostp, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 14/50] tcg: add tcg_gen_st_ptr, Alex Bennée, 2019/06/14