[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v2] Hexagon (target/hexagon) probe the stores in a packet at
From: |
Taylor Simpson |
Subject: |
RE: [PATCH v2] Hexagon (target/hexagon) probe the stores in a packet at start of commit |
Date: |
Fri, 1 Oct 2021 16:14:31 +0000 |
> -----Original Message-----
> From: Richard Henderson <richard.henderson@linaro.org>
> Sent: Friday, October 1, 2021 10:55 AM
> To: Taylor Simpson <tsimpson@quicinc.com>; qemu-devel@nongnu.org
> Cc: f4bug@amsat.org; ale@rev.ng; Brian Cain <bcain@quicinc.com>
> Subject: Re: [PATCH v2] Hexagon (target/hexagon) probe the stores in a
> packet at start of commit
>
> On 9/30/21 5:16 PM, Taylor Simpson wrote:
> > + } else if (has_store_s0 && has_store_s1) {
> > + TCGv mem_idx = tcg_const_tl(ctx->mem_idx);
> > + gen_helper_probe_pkt_scalar_store_s0(cpu_env, mem_idx);
> > + tcg_temp_free(mem_idx);
> > + }
>
> So we're assuming that the s1 store happens first?
> If so, you could expand the comment above.
Yes, there's a comment in process_store_log (with a typo fixed here).
/*
* When a packet has two stores, the hardware processes
* slot 1 and then slot 0. This will be important when
* the memory accesses overlap.
*/
I'll fix the typo and expand the comment in the above code.
Also, tests/tcg/hexagon/dual_stores.c tests for this behavior.
> Otherwise, it looks good.
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Thanks!