From patchwork Mon Jun 26 15:39:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 696469 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3300670wrm; Mon, 26 Jun 2023 08:48:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5RtFggbO1v7y3xRTY3CTRuyc4m+gJLc15iN4KkqaB+56oKbtvuTVRPjRk8CaPtwcd6YFxE X-Received: by 2002:a05:6214:e67:b0:631:fea4:cb69 with SMTP id jz7-20020a0562140e6700b00631fea4cb69mr12023955qvb.41.1687794507761; Mon, 26 Jun 2023 08:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687794507; cv=none; d=google.com; s=arc-20160816; b=dM5P5lGjFNs5xwk7m7lsEQjQvCvhzTQ1dxB40NrAjyROYoGwG4Tm/QmJIowYULDJPM CoLP/4xM1a2fKM0sG4UZdoZD0sT533h68eEIdiKuczZi5b5Sa/jhX/u6onX7NoT9fzlY zAMjrvh+n+OUq5FgEsrK38YqA+k28x7AkqmuI0fk34QJ8ItZuSoYdYSAciZirVhk95L4 dwZ6pPhYq3Fn431PQXBivT4J7XGBp0F7zSKrpyPLmrcqcrmGcQz8nnAGAidlny88Nz4y zVlsgGIaAZqL6gDcQgy6W3EnuprGpyN5Q4owPbX+EEGSZ7dvDl5O/eolauuJPC4eS+tk XUcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/d9RaY710qpk29m9NqH9KDca+EQbruyiS1ODzVmbSbA=; fh=SRd58DGXXEVwM4Z5oe/yZrCfJW8kG9si3hJHMrFTvnc=; b=FXvYzui9/eeJxpHo+h2dHgRWrE+16pYKeuytLjV/n1PcaXZYOMqyPOh4wsQN9T5N+D caWJhFU/8Y4cX+ub9pl+1wX96QrSMncCyMTnn883iwjtt+IRbJHFQZZDMr9fbWrCKGvx b3Xm5JYmGMdlt9K9qlCzSntx3noIjSt5F3PIVnUj6wRX9QVjGBoeneAORwPu1cBxnaTg FWL5ZBJ9iaKoEBhjz+AQ+NCOGevh2XasaSVoeIrhOVmWEbWcjM8E31uZY+ZybwgXvj68 iCedA2akBhhvavDxVve+wFBE9CgxmjkH5sYO8LShISSwPIvD9iT2YhUPc3stDBUteDkR 58wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N99KCKQh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c12-20020ac85a8c000000b003f6b218debbsi1984117qtc.372.2023.06.26.08.48.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jun 2023 08:48:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N99KCKQh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDoLM-0002Ov-3J; Mon, 26 Jun 2023 11:41:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDoJs-0000Ji-G6 for qemu-devel@nongnu.org; Mon, 26 Jun 2023 11:40:08 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDoJp-0002rc-UX for qemu-devel@nongnu.org; Mon, 26 Jun 2023 11:40:00 -0400 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3128fcd58f3so4185700f8f.1 for ; Mon, 26 Jun 2023 08:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687793996; x=1690385996; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/d9RaY710qpk29m9NqH9KDca+EQbruyiS1ODzVmbSbA=; b=N99KCKQhLS/q950UocoLeM9uylNIvrymTBb8PXigGVLk06+ThT5VqaHV3eRO4sAkkl I9xV/lvnpgWfhL423oZLrtnfkkMmaAf6IyM0GcuoepgrlsuofYxcpst/gWh3C0Kqm297 p47erO75hdBvXQPjFD95xLrur6kVTUvPIJGX6rONlnZrSwW9w1pxBjwqSHeKPjgHLMMU NFvz0/svy+5t128w3jJQLmDPtz/dfJOnVur458FyfEavY2HfLfGgK7AWpJhpsd71v9OM U6CRR3T09yUlkWDoUm7GAxNy6YJ3F4YK5z4NfZ3RBW1kHwI97UBZtggSzFpMnGt2S/xC 7YVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687793996; x=1690385996; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/d9RaY710qpk29m9NqH9KDca+EQbruyiS1ODzVmbSbA=; b=FtXOfmPhjecf8M4YmnTc5M6EvwAWoPFMDTuOu0JjILCl8ODykP7mBUH32EXw6Dz9LP FDkADn5x7teYX5XKxnX/itnHhvNzsUSQGUGJQOAhe/6D0yQVoRjqx/nae6Ee17Wzur2j +0ATXb0v0g1bbdvskkS4stECn0BaThrO7r5bq+mSz1w9MDnGq8SDmBj+NXMqKih0SVS+ t+0XPx2cPN43+OOePv0fFpcqFdFuSPI01EgAkr/Uu0jebHhT6w6vZd1kHkZOhp46T9tU 7RyUW83EW7VpgUW3t1578JyY8eljzUNwhJO7sllX/Qy+WqGSiXHo2W88oZdXv+F/ItDs Tm1Q== X-Gm-Message-State: AC+VfDyu1UTyq2g/eZZKazIF8KY9wS0Z66S6fiQ11mhJCspaombspTjk 7a9ovO876Yw4I2SC2585HKbITv4kqB1CRkYWW33XGGCa X-Received: by 2002:adf:e7d1:0:b0:313:f29f:5eb3 with SMTP id e17-20020adfe7d1000000b00313f29f5eb3mr2062068wrn.32.1687793996637; Mon, 26 Jun 2023 08:39:56 -0700 (PDT) Received: from localhost.localdomain ([139.47.42.170]) by smtp.gmail.com with ESMTPSA id t1-20020adfe441000000b00313f45f74a8sm2164178wrm.103.2023.06.26.08.39.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 08:39:56 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , "Edgar E . Iglesias" Subject: [PULL 16/22] target/microblaze: Define TCG_GUEST_DEFAULT_MO Date: Mon, 26 Jun 2023 17:39:39 +0200 Message-Id: <20230626153945.76180-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230626153945.76180-1-richard.henderson@linaro.org> References: <20230626153945.76180-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Edgar E. Iglesias Fixes: d449561b130 ("configure: microblaze: Enable mttcg") Signed-off-by: Richard Henderson --- target/microblaze/cpu.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h index 3525de144c..a7b040abd4 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 + typedef struct CPUArchState CPUMBState; #if !defined(CONFIG_USER_ONLY) #include "mmu.h"