From patchwork Fri May 3 12:25:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 794369 Delivered-To: patch@linaro.org Received: by 2002:adf:a153:0:b0:34d:5089:5a9e with SMTP id r19csp707703wrr; Fri, 3 May 2024 05:26:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUrPtHWv24AHsiZd7uugMFMLFThKj6E3XqX20Vbc/O+NlEjxkCSivQtmOfi614uhi7+NPY7Jd7Woru6he6fHSOB X-Google-Smtp-Source: AGHT+IGHd4f+qwvTkIAR/8NBuVDUJv15W5KuAy9MM/AaVaNHhXpIvEYVjBl2gSXQSlSDcdMDfv3y X-Received: by 2002:a4a:182:0:b0:5af:24de:7f1 with SMTP id 124-20020a4a0182000000b005af24de07f1mr2411742oor.7.1714739201853; Fri, 03 May 2024 05:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714739201; cv=none; d=google.com; s=arc-20160816; b=TXtt3l+XY6bL8zWDa0ongxRnr/kILFYaCyYmFAv/OzmyPpgtR4VC5WXwW7zBOvehHq Or+eTrQZk5WA0NBwHLLtCq66HCPVpYc1E5m9HEYxtHI/rAa9ynCbzx1KVkmZ4gYNGErR OvA3cfKIOU+ByAipM6ZkgktTHlsoendqkKVO3aLflTDrDoyfo5hXHJNgVjPOEGcw2Xs8 SDOyV8jONCy2MtEQNAj9yw1n4My8Ct2UoEwRRdzW0SgA/uaXJAlpY+hXAELzQGMpNDjC YLmAFTFd5z+ca5i4V7W+PqSCG5777XRpVUvY4WJsrWY2UuE1xFmlyqkBhDT5klmP1Y4v kgbQ== 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=b8DwnhcqDdYLqJv6uh/ywG6qW/XlS7dFgSw/LzDaIEU=; fh=SLdBWdVl4pOwq9we+/FCh5WeSKt0HqFXI7sxtbVu3fc=; b=GRujtZIEG4k1i7HsfeOT/68ds89mnIa2sWhn6njBC1zcXD7QtZOjwAP+2F1iswdr1N evVjHSqgLexvN5BpHChHdUfAI1GnUXTTN5Vr/WUfkj80VZYnOvtwUnpPihtfCAFrota+ P0HP031BJXRUlunwtKm3L+kKgXoj/xlVl77e3mvyqoVqDfMQpk9tdpqBa6osOu6ES+T1 lcDJkQ6P5kBzyH9qve83nwki7wM5THQGjsiLLl9S8sBsF3LDZUCovveB+0c6Pg0qkRJ+ IAxkaz+CTQCCNla/RH9q8PT7n6S1mghaxiwO6dJ8bKlyiEEWj3K5Fh89UHiZbx4H/W5B pdeQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RoA8XkUt; 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 o12-20020a05622a044c00b0043ac88e5edfsi3257853qtx.450.2024.05.03.05.26.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 May 2024 05:26:41 -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=RoA8XkUt; 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 1s2rz9-0006lb-Pk; Fri, 03 May 2024 08:25:55 -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 1s2rz0-0006jm-BA for qemu-devel@nongnu.org; Fri, 03 May 2024 08:25:48 -0400 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2ryx-0000sg-8i for qemu-devel@nongnu.org; Fri, 03 May 2024 08:25:45 -0400 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a597de5a715so288256566b.2 for ; Fri, 03 May 2024 05:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714739141; x=1715343941; 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=b8DwnhcqDdYLqJv6uh/ywG6qW/XlS7dFgSw/LzDaIEU=; b=RoA8XkUtgiMvl0vjVJ6Ie2J3kaHzCpSuMVbA7WkMLVfpR06bzEFD/GbhKCdevqvYHR dXhmcnO2NGk03UZW9OmsFKha0xJ5b/oNXsYOeMMtTTHxDTSPhPLxDZ8yqZAswTclipYP hSL8VX0+LOS1+Nyh1tYe0rC8wmfRtk519GTDChWTtxHDNdDU0USuiY13sz1lwjLRpOIh pQZGxWJixc8HKYX6yyxAwO8oBbI0DQLQXtxKW3WPck5kc8xE+U1zOG+8Mc9W8M+nlBzJ 6CL5vXGblDzNmJxMnVqU7HN23POF0Pqk3NIAfXnTVM/1LiUAQgKsodFBFpZvx/+fyy4H tLmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714739141; x=1715343941; 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=b8DwnhcqDdYLqJv6uh/ywG6qW/XlS7dFgSw/LzDaIEU=; b=ntvDhPwP5+vrr3i9iR0y2IUWd4/ab0JipUZZli3FdnQ5poC/tyz9b1rfruLCO3fqmT J5mhk0YELxqptzYorRNXDD+aF5p5jZA5Js9I3pJYQ4j+lrKUZRFtnt2p+Dg/sTNUyQhO UXaJ4lfh4nhxmEkHNzpOUeBSe+Cc7MsvCzHcoVrCZxNHXagH7TwpNYY+5fDKekcqvN13 ipQj9+/+/WJg2UIzPvy9yI0ibgf51Y7Xlfkw9Db99SlHmdkqHVjCmi65mGF1vummQnGm v0KE7dmrB6rCNFkiSC8G0fj0hIhTVac1WCRmclvWF/RY/IMToCKTPARkxrPCjhD4prck Gk7w== X-Gm-Message-State: AOJu0YxEUCdBw8BWyqBjCaxmuP2TaKxZEq7ye8bVqactHXTIeKjgOPdl VRPJREvyp4vu3c1aYnj+sKFNVz+2srDjU2c5Sgnm4EMudxTTtuQNcDQ4mkiby76d/hnfjvy54bE U X-Received: by 2002:a50:8711:0:b0:56b:ec47:a846 with SMTP id i17-20020a508711000000b0056bec47a846mr1516035edb.25.1714739141326; Fri, 03 May 2024 05:25:41 -0700 (PDT) Received: from m1x-phil.lan ([176.176.179.187]) by smtp.gmail.com with ESMTPSA id d25-20020aa7ce19000000b00572a7127cb0sm1637087edv.50.2024.05.03.05.25.39 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 03 May 2024 05:25:40 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Laurent Vivier , Richard Henderson , Kyle Evans , Ilya Leoshkevich , Warner Losh , Paolo Bonzini , Riku Voipio , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 2/4] accel/tcg: Do not define cpu_exec_reset_hold() as stub Date: Fri, 3 May 2024 14:25:24 +0200 Message-ID: <20240503122526.28312-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240503122526.28312-1-philmd@linaro.org> References: <20240503122526.28312-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=philmd@linaro.org; helo=mail-ej1-x629.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 In commit 1b5120d74b ("accel: Introduce cpu_exec_reset_hold()") we defined the user emulation backend cpu_exec_reset_hold() as a stub. This was a mistake, since common fields are set in CPU reset, and user emulation needs these fields to be resetted. Move cpu_exec_reset_hold() back. Signed-off-by: Philippe Mathieu-Daudé --- accel/tcg/user-exec-stub.c | 4 ---- accel/tcg/user-exec.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accel/tcg/user-exec-stub.c b/accel/tcg/user-exec-stub.c index 4fbe2dbdc8..2dc6fd9c4e 100644 --- a/accel/tcg/user-exec-stub.c +++ b/accel/tcg/user-exec-stub.c @@ -14,10 +14,6 @@ void qemu_init_vcpu(CPUState *cpu) { } -void cpu_exec_reset_hold(CPUState *cpu) -{ -} - /* User mode emulation does not support record/replay yet. */ bool replay_exception(void) diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c index 1c621477ad..6a108eb212 100644 --- a/accel/tcg/user-exec.c +++ b/accel/tcg/user-exec.c @@ -37,6 +37,10 @@ __thread uintptr_t helper_retaddr; //#define DEBUG_SIGNAL +void cpu_exec_reset_hold(CPUState *cpu) +{ +} + /* * Adjust the pc to pass to cpu_restore_state; return the memop type. */