qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>, qemu-devel@nongnu.org
Cc: Alistair Francis <alistair.francis@wdc.com>,
	"Edgar E . Iglesias" <edgar.iglesias@gmail.com>
Subject: Re: [PATCH v3 1/5] target/microblaze: Define TCG_GUEST_DEFAULT_MO
Date: Tue, 20 Jun 2023 17:46:25 +0200	[thread overview]
Message-ID: <6670763e-c427-09be-41d8-c797a394900e@linaro.org> (raw)
In-Reply-To: <2974a774-b55d-371a-5596-5be1938ad4af@linaro.org>

On 6/20/23 17:41, Philippe Mathieu-Daudé wrote:
> On 19/6/23 16:23, Richard Henderson wrote:
>> The microblaze architecture does not reorder instructions.
>> While there is an MBAR wait-for-data-access instruction,
>> this concerns synchronizing with DMA.
>>
>> This should have been defined when enabling MTTCG.
>>
>> Cc: Alistair Francis <alistair.francis@wdc.com>
>> Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com>
>> Fixes: d449561b130 ("configure: microblaze: Enable mttcg")
>> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
>> ---
>>   target/microblaze/cpu.h | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h
>> index 88324d0bc1..b474abcc2a 100644
>> --- a/target/microblaze/cpu.h
>> +++ b/target/microblaze/cpu.h
>> @@ -24,6 +24,9 @@
>>   #include "exec/cpu-defs.h"
>>   #include "qemu/cpu-float.h"
>> +/* MicroBlaze is always in-order. */
>> +#define TCG_GUEST_DEFAULT_MO  TCG_MO_ALL
> 
> Targets missing such definition:
> 
> - cris
> - m68k
> - nios2
> - rx
> - sh4
> - sparc/64 (!)
> - tricore
> 
> I expect targets designed for embedded systems
> to be in-order for power efficiency.
> 
> What about having each target being explicit about that,
> having a build failure if TCG_GUEST_DEFAULT_MO is not defined,
> instead of the '#ifdef TCG_GUEST_DEFAULT_MO' in accel/tcg/?

I'd be ok with that.


r~



  reply	other threads:[~2023-06-20 15:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-19 14:23 [PATCH v3 0/5] tcg: Issue memory barriers for guest memory model Richard Henderson
2023-06-19 14:23 ` [PATCH v3 1/5] target/microblaze: Define TCG_GUEST_DEFAULT_MO Richard Henderson
2023-06-20 14:47   ` Philippe Mathieu-Daudé
2023-06-20 15:41   ` Philippe Mathieu-Daudé
2023-06-20 15:46     ` Richard Henderson [this message]
2023-06-24 17:29   ` Edgar E. Iglesias
2023-06-19 14:23 ` [PATCH v3 2/5] tcg: Do not elide memory barriers for !CF_PARALLEL in system mode Richard Henderson
2023-06-19 14:23 ` [PATCH v3 3/5] tcg: Elide memory barriers implied by the host memory model Richard Henderson
2023-06-19 14:23 ` [PATCH v3 4/5] tcg: Add host memory barriers to cpu_ldst.h interfaces Richard Henderson
2023-06-20 14:22   ` Philippe Mathieu-Daudé
2023-06-19 14:23 ` [PATCH v3 5/5] accel/tcg: Remove check_tcg_memory_orders_compatible Richard Henderson
2023-06-19 14:43 ` [PATCH v3 0/5] tcg: Issue memory barriers for guest memory model Richard Henderson
2023-06-26 10:52 ` Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6670763e-c427-09be-41d8-c797a394900e@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=alistair.francis@wdc.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).