Message ID | 20240408174929.862917-24-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:fb4d:0:b0:346:15ad:a2a with SMTP id c13csp365wrs; Mon, 8 Apr 2024 10:51:50 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVgxeAJMXFXczOdHGUG24r+mQvBMpu0hYWAANcwtibs+49mDhdRLvXfmsPejHlTuMHT/9Dq7Y+XE4ceWkc8jz7w X-Google-Smtp-Source: AGHT+IH5J9Hj95cNEHyfma7azQoA9h/YfnaVZwGaRGoae50QLCMxf8x46XrCGwWqjyFb30rza/oR X-Received: by 2002:a05:6214:e48:b0:69b:1e64:413d with SMTP id o8-20020a0562140e4800b0069b1e64413dmr3091649qvc.52.1712598710271; Mon, 08 Apr 2024 10:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712598710; cv=none; d=google.com; s=arc-20160816; b=q0vgLi4STGwd51cskqaNlOkbOwEIrcR+wRlq8MSF5RvXSGBk5CFuWyqJZjjgmCaN0T lt7k8sWIYdNs75qTv/PD+/Nn6NQY79nc/9BmXFziSjIZsZC/SRJwQFe/xbeoCb4zQkGf g2QCRXmFY98gB7kl9rDnwoLunU+6PFe29bq7D59fwlCDjNH0zEX3mkGZXOXLtDd+MRBO qYjFcKuTQLd72IvdATYWhn00YjSSWGTys1JEM6tIhH5q4J+Oy8DcgcAlf+S8wpAlHDKv BX5N/7NWjXZYs82fgDqdsCQ2yC8dG4ZgiikdzJkPlj4c5Wq1Gbxc7tKkoK6xvTia+me/ YPrw== 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=fQO0EY4mDLrrFT+vnkTsVcf/DHsLrdpuFvrCYXf00/g=; fh=OTkfrEnbNDInppsfj4HB8z6V33zCj7LOct256XBfW6M=; b=MswxIqTCDVUNFsj2K/GJDjPQnzZZzVwnxid9viXWvTqI4/nhIX/yHzH5gjxs2Xqa+8 Y5HZWm8G7bCQn5Y6McfQ+lrtieCQwwsM8X6uWbw+pmZVUgg+K5KfYCALxHDI78JQNgQx beMn5R7cFATJgOYQVniqS9lHMk0KdgrBci/wL+pLf4jQYr/EnYjwP0GGpjAOcXK7U79Z LCTQ6FeesZE1BvgHfqvwZwH8bWa3zYfAlzwKqCzs/h91j7xBQ1jY3fGMACImYK2AngGE 6HSmDnYTNFp9r5LYaIJGAw19LkQaGvQ1SCfLw3IYru5bnKiqNQsoy7YqjnTFqMCNO3Ll GRhA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HN0D9VzU; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id et12-20020a056214176c00b0069937b6bf1esi8495700qvb.402.2024.04.08.10.51.50 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Apr 2024 10:51:50 -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=HN0D9VzU; 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 <qemu-devel-bounces@nongnu.org>) id 1rtt8J-00026n-Po; Mon, 08 Apr 2024 13:50:15 -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 <richard.henderson@linaro.org>) id 1rtt8H-00025w-Qa for qemu-devel@nongnu.org; Mon, 08 Apr 2024 13:50:14 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1rtt8B-0003ik-PM for qemu-devel@nongnu.org; Mon, 08 Apr 2024 13:50:13 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6ecd957f949so4618682b3a.0 for <qemu-devel@nongnu.org>; Mon, 08 Apr 2024 10:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712598605; x=1713203405; darn=nongnu.org; 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=fQO0EY4mDLrrFT+vnkTsVcf/DHsLrdpuFvrCYXf00/g=; b=HN0D9VzUmMVQcQOYbHuNjNG/bFxuORjwHnygQjUJ3myFsjkIwszVHyVnD8vg+jckQA VdQMIayJ1bOUrn+X39BSaU3Rm873ulUsynaZsn9TaajJZnjG0fekc0cBt8YH1TynzLjZ tKsxYS1+bUYgUm4qS3BGIU93gU5qj52Dq0ENfvsPtwDoF5zAparRdiPznoP+Rvb+jt7+ TM8KvqNaYPee0M9d3HZ9x3o8Cfr/7X5oJ8veK/ZW4TIzomO7WCla1Lb6dpI64kFmi8hQ YLhgebaH6wV+pG/pUnk7TBsSdaEq9cZwouJFLpzNyBPCwB5LyssY1raE7AEQtzqoNMAe B8sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712598605; x=1713203405; 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=fQO0EY4mDLrrFT+vnkTsVcf/DHsLrdpuFvrCYXf00/g=; b=S5+HKCr9cHw+VNRtqRVO40t0RtmBeUuzx6G7a30A2WPzNxkvykU0+Esldc92AdalI/ LiW0leXt2xurYTotbEQNMWTEP56Mj78qJ6S8BPh9n9mqgnzGNW5T2YljzpsS7hdMTwIr DVksHcTJJSV4iPYVEQivSlhW/8G0XtxC5h234cOH0TxkxCW8uShtWC3VcJYcvXCaDodz wyke3JJ6waZk/45NiRsCFjksOxXoyNurUVGiUPQom1l2fIOtCY0dnXXnDFlYDdO4unFU /AoK2DjrKJMaMsdVfycLo7scDb0UHoN7t0OYsc6APhrLTlVMAFY7lScmlgTXvt9enjqG aYkA== X-Gm-Message-State: AOJu0YyKe6uAya2n5k6COftfPFt4/ImSBgVhoiPIFT7L2liHpSKZi2TP dGBfiHQXARM9dJJXJHUgIH7go4OwLxNZUse/jJSmZRJ3csy0gSP4L9N+cHIvE0lQ8P/13R8pED5 e X-Received: by 2002:a17:90a:c24d:b0:2a2:ba1e:92fd with SMTP id d13-20020a17090ac24d00b002a2ba1e92fdmr7555019pjx.45.1712598605516; Mon, 08 Apr 2024 10:50:05 -0700 (PDT) Received: from stoup.. (098-147-007-212.res.spectrum.com. [98.147.7.212]) by smtp.gmail.com with ESMTPSA id ga15-20020a17090b038f00b0029c3bac0aa8sm8658432pjb.4.2024.04.08.10.50.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 10:50:05 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: Paolo Bonzini <pbonzini@redhat.com> Subject: [PULL 23/35] target/i386: Preserve DisasContextBase.insn_start across rewind Date: Mon, 8 Apr 2024 07:49:17 -1000 Message-Id: <20240408174929.862917-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240408174929.862917-1-richard.henderson@linaro.org> References: <20240408174929.862917-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/35] tcg/optimize: Do not attempt to constant fold neg_vec
|
expand
|
diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index 07f642dc9e..76a42c679c 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -139,6 +139,7 @@ typedef struct DisasContext { TCGv_i64 tmp1_i64; sigjmp_buf jmpbuf; + TCGOp *prev_insn_start; TCGOp *prev_insn_end; } DisasContext; @@ -3123,6 +3124,7 @@ static bool disas_insn(DisasContext *s, CPUState *cpu) /* END TODO */ s->base.num_insns--; tcg_remove_ops_after(s->prev_insn_end); + s->base.insn_start = s->prev_insn_start; s->base.is_jmp = DISAS_TOO_MANY; return false; default: @@ -6995,6 +6997,7 @@ static void i386_tr_insn_start(DisasContextBase *dcbase, CPUState *cpu) DisasContext *dc = container_of(dcbase, DisasContext, base); target_ulong pc_arg = dc->base.pc_next; + dc->prev_insn_start = dc->base.insn_start; dc->prev_insn_end = tcg_last_op(); if (tb_cflags(dcbase->tb) & CF_PCREL) { pc_arg &= ~TARGET_PAGE_MASK;