From patchwork Mon May 6 19:55:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 795030 Delivered-To: patch@linaro.org Received: by 2002:adf:a453:0:b0:34e:ceec:bfcd with SMTP id e19csp1091397wra; Mon, 6 May 2024 12:56:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWzpoiDdn6UWFRJPL+07ZpWdVHjy2XjFIN7UHaVKKLxpceY3IuWwHDk0vBwWXjxjqYoHu3d/o8eW5BE/W6QqoLt X-Google-Smtp-Source: AGHT+IHXZEtyZxk2RQxnVsAj1YFSz00htMI1v250va1Ogj31WY6Jp0CAYMij73OUg6i+RfNGiHGx X-Received: by 2002:a05:6102:5d3:b0:47c:3033:5faa with SMTP id v19-20020a05610205d300b0047c30335faamr9425938vsf.20.1715025373026; Mon, 06 May 2024 12:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715025373; cv=none; d=google.com; s=arc-20160816; b=GbOZp05IOJ0s6eiDdesxHbYL9TuUEr80fknzguEyDGB7+gIgWd7m87nVZvVpbiDTbl G45qiuLeozePa74nIUUyXp15Y8RACUqYnAGQoAj1LIdPJaeUhSxmA6TqSKwd/zlel1sO 4cLATuCH7Mx4aV5S8yW9WdgQVr9ux7qveujMiL0PBWONorjEaTByKOgLFbmI1G68jTaL iM/sjgxRPUYnCeQIGaJtSXchcCuvzhthOvHjOAUSe3U/V8+3tyCKDq9iEDBA7cs5VUWB qM0d3Rj+MRkCvR2u2HL/NrRwLJkRVyzMoSLTyAnE8DMCClNIFaXk18Z3YfSiYWEiH03Z yBhw== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=gCKDBZgmkxkw60aZ1JTPBVFXSTJpz/Y7AMgu8NmXySI=; fh=hlxmv0mVzolZou1qFPAXxx1GN7REaKyAHbIuKvpdaJM=; b=udjzYx8aOoqPONknkL2ytPYl84PhF7BFC6R0E3m9OlgZymHOsOowSlYq9Qw1K3ZnGy 50oJMXCNu4HBGLSgm9L0/WdHsGLDrQWCKhWXkBhIHWOsU03yJbqmXfgx3ybnuKuUuro8 RyxmrBpC5XkeMhX1XgjG87BCPlLyfPlpNb63CO4ryn1D8NGi6/eehcNpJUWuK3491swI KpgQdGmD7nOgp8DVWxNKTbaWaQoBgULOesSB6jev+ZChwPKHwsXoAkHsPLADvUBhNAn6 8vltR1MhTONm8UqrY88oBvLEExx5QlIvM80p53/dSf1t+LcRw7Xcmx+oiwdE0x9XqXCb J/Mg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="nDhqmwT/"; 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 14-20020a0562140dce00b006a09a76bc39si9890168qvt.557.2024.05.06.12.56.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 May 2024 12:56:13 -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="nDhqmwT/"; 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 1s44Qe-00074c-BZ; Mon, 06 May 2024 15:55:16 -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 1s44Qc-00073Z-4u for qemu-devel@nongnu.org; Mon, 06 May 2024 15:55:14 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s44QY-0002xt-Tl for qemu-devel@nongnu.org; Mon, 06 May 2024 15:55:12 -0400 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1eb24e3a2d9so22743555ad.1 for ; Mon, 06 May 2024 12:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715025308; x=1715630108; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gCKDBZgmkxkw60aZ1JTPBVFXSTJpz/Y7AMgu8NmXySI=; b=nDhqmwT/LkzTo94CTnAFhjCQ9BGoPSgpaqYgSR4Sdbo5S0evYDt2x/yeYZVQ6LVX+X kYnTPmYNZpfNd1riFXNshi9/EdDqT6ApTDhh8w81UFSfTunIuy/PS5BQxSm0fNmDKcUP z0B+UNOQi4ZziBIYCrXCRSoBFbYe7j2Fh5RKmkvIiIipJLGE382eXXrA0Q/aA4yBpdD2 2ARHVLHP2bAPSL4giiGVeXsrNIllIb3516I/5ygQsseORWNwIZIEf/Q8yLelkluiZEdh UOoh3oNTjU+DBfIzqCOftMI6rm9hHu15DDnguEh2g4PTw7QZ6XXbED8ygY8Y9wK5krHx EPIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715025308; x=1715630108; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gCKDBZgmkxkw60aZ1JTPBVFXSTJpz/Y7AMgu8NmXySI=; b=bJ/9rZX9AQkhEr69RAMUKxjCUB9FygAA2EwYY9xV3i/uLqmRKwqkumvwVC/M+H93Lk ev5nJSwfujKPnssn3OJRLM0c3NglpfSufxV2OrUMXtIk7Ujc7eRLUNSpaINg2pWa6HzA 7+56MtfkWPiWNC5n1Tu4LZlb5QKPi1pM9+4Xcj2sh+udZ7F4fI0KEQH1F/ggE/Xk7NxG LeKwDPXVfKgcTJiYWx7REKQyVrJ3miXJIC8lkuGD8oCdwxiz8MTgVfltLZJ5qSdQ24kx 16T8LagfuN4T4XenQa5/i7SZbRqi/30RhC7VaSgMgv5on2PfQPPpWaYqijpKHf7U5gfU IVXg== X-Gm-Message-State: AOJu0YxLy8vfPD/4DzW6IQhU7rK+yijyt9IEDrSpW5kg5V9QyrVZEKtZ NKRQigpe6uxoE2UQYyBY/54GMoWkBVlPFHZlYKXUu28lDiwP3srFzrGmE9GMduIn8BUbJWF+Nub Q X-Received: by 2002:a17:902:d2cd:b0:1e3:e1d5:c680 with SMTP id n13-20020a170902d2cd00b001e3e1d5c680mr15821044plc.63.1715025308341; Mon, 06 May 2024 12:55:08 -0700 (PDT) Received: from stoup.. (174-21-72-5.tukw.qwest.net. [174.21.72.5]) by smtp.gmail.com with ESMTPSA id z14-20020a170903018e00b001ecb2179da6sm8638576plg.56.2024.05.06.12.55.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:55:07 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: ysato@users.sourceforge.jp Subject: [PATCH] target/sh4: Update DisasContextBase.insn_start Date: Mon, 6 May 2024 12:55:06 -0700 Message-Id: <20240506195506.385921-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62b.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 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 Match the extra inserts of INDEX_op_insn_start, fixing the db->num_insns != 1 assert in translator_loop. Fixes: dcd092a0636 ("accel/tcg: Improve can_do_io management") Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato --- target/sh4/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/sh4/translate.c b/target/sh4/translate.c index e599ab9d1a..b3282f3ac7 100644 --- a/target/sh4/translate.c +++ b/target/sh4/translate.c @@ -2189,6 +2189,7 @@ static void decode_gusa(DisasContext *ctx, CPUSH4State *env) */ for (i = 1; i < max_insns; ++i) { tcg_gen_insn_start(pc + i * 2, ctx->envflags); + ctx->base.insn_start = tcg_last_op(); } } #endif