Message ID | 20241230152519.86291-3-philmd@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp6488492wrq; Mon, 30 Dec 2024 07:26:30 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW6GVA4E6nPd56aUY8gDi3RCcphFrSjug3SQXXNmmxvCatGzV1txncxs2aSJoaYDpNKaP573w==@linaro.org X-Google-Smtp-Source: AGHT+IFcCigVdjCYUwSOjdo2igtCJyCrm/upVJYwNjkPIvknSuuYWFv/Cof60McmkK8ucJC3Zmqg X-Received: by 2002:a05:620a:40c1:b0:7b6:de3e:1838 with SMTP id af79cd13be357-7b9ba6efa1cmr5240152485a.6.1735572390403; Mon, 30 Dec 2024 07:26:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735572390; cv=none; d=google.com; s=arc-20240605; b=lmH651MkvQDp4oAcP0nuL5Ku0+ItdeQCDenXfPFa7lYly7ZcbQRhn2AxiYCO8S+xG+ JeTMYt9UhXOmbwVsBqDF2Ue161cw19dnRAbi16s2tGevHR7GhWwhj3aiSivelqcH6auU 2XGN85xRiQ3fYInFlWGeohlTaAyu5/+B9tyEdHqk4r860WiYhNHhFEYqEAkneYHpw/C+ HSGMYuvd+R/uRlSjn3phbPULOOrbOQb9cz0Vu9HQew5068ex2AfOSgI5ZZkWduBngaHi /gKw1z9OcqLMqOGMWEJMpB50lqBMb88DOQVrpRCr6hohO14t2iE3Xw+Lkm0T3K4ISYis gHpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=GAtXelESZqP9EpLglyIc26IsQk/mXnYos/ye7zC5LFE=; fh=Pu80oL6pqNVhcxmoTE7CG5kT5lPd7R2XHVDIETOmhNw=; b=CaO66HoQBahgYRB1tTAkCwnBo0jGln8T02JXYw57Ze/bFdaKNG0MGBbQ58xE0klR4E WjIU3kCcX4PMFVuHKmYy/1T0jnpYg8XRn/7Ik8mm/iJ6h1C9ryvVYL1dI/ntGuCyj/19 1xxZv4Kf0OVNyC7tliGwdTAxnqkzvFPgrEfs1i9xE1E33n9kgJvEQ6DEae5XXaZyl/mK IT9nPBnFxH9DCBHqDlR7qmsiDZ5hMQpYPWVJbB8aICDSpXtEI7zXh0TNULOIQ8L0esJ5 I9heajTT6OqxAqYi6bnRCprlC4G0umqcxDajM/8EHJEp1yWwR7FxgI0QBseQL6DOgcoD AySA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fKbED+iH; 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; dara=neutral header.i=@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 af79cd13be357-7b9ac4cc3dfsi2727909685a.352.2024.12.30.07.26.30 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Dec 2024 07:26:30 -0800 (PST) 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=fKbED+iH; 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; dara=neutral header.i=@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 1tSHeD-0002bM-MH; Mon, 30 Dec 2024 10:25:37 -0500 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 <philmd@linaro.org>) id 1tSHeA-0002aY-G2 for qemu-devel@nongnu.org; Mon, 30 Dec 2024 10:25:34 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1tSHe8-0001l5-Tl for qemu-devel@nongnu.org; Mon, 30 Dec 2024 10:25:34 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-43621d27adeso64197915e9.2 for <qemu-devel@nongnu.org>; Mon, 30 Dec 2024 07:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735572331; x=1736177131; 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=GAtXelESZqP9EpLglyIc26IsQk/mXnYos/ye7zC5LFE=; b=fKbED+iHAeCBO/RUzSyNB0HTk8icBtqHxh3t6pSXjPAAsSSBy/abGFMiLtPDzG934I mSXoP2+UExDm1LYWhv8c6rt1ia0YgrOtaAOLfH5tI9hmu/aEu+BSPOhKg0KocMB0KKP9 oi4D2Z8DSdHT/ZB0U6K6PIn07wsEZ5lA9oY9Iv2WHRxvE0+li5bsSHz0AR0D3anbNK1l PSCRd/7qzlGTKa4OySd6yWHHdTX3RmUSQoj4c1sIIZ/uk+xVZRrgkpu5Ws8D/bgLhsOe nfzwynCqgD9JpcUH9wBW+2ZWfEjQVzJGQRkr3l8GzSYun+axVOtTc+c538fI8dWl0ZxH IiBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735572331; x=1736177131; 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=GAtXelESZqP9EpLglyIc26IsQk/mXnYos/ye7zC5LFE=; b=rka5uGqUBxEh3FbhT9gs13u7AsOulq7Uge6dlQ5y1EkAsX4O9Rr//sR+2FXz0Mhd5z PUA+IKBw+CjcL2PdROGxXAGadtCKIcU46p8zxQndeFbQvj02aL6DtrpIhvXv204ZRBZw 8Aw/0608EcgCCS43KO5eeOPCCuSoPpGxXIyQbzQ+4rMp0MjKjYHZCUpjhlEK2WbK+IH9 I4k6LGwtOeo9Wt/jBVScmELOvhEkXrV6B3Pd5uX8O5r6lR1xKg4zb9tlXF74sPu44Gzh m6Op1SQ2ob0RzbCOdPX5fLdufCbi5H0N7xuIjsQfjbElcd4lmKjguq6AifxoLYSYaTYk qBmA== X-Gm-Message-State: AOJu0YyEvvc/rt6YHoKq/XmFgBdhihTs8WNNfJFDK49BR1ztW6VFJPVd TOqD1Uqu8x15SLKZ5MUiYKyyZnOFs/O2LiFNu9uhEV8h58FiD/24uQArEIBttAX+JQPCPERcZQU p X-Gm-Gg: ASbGncuA4BOHkGSUqJwiDVesulH8wBXpndVQEIYoOrKtM4C695TXCNJWvuOjTtgY/BB 4RAexCgbLIWTDvlJlE4hcuuro9/PSXulyAi84FjpabA3p8ahbq3fdVXO8UWsdX4qrmCEq2Wy+bn UPkLzTJadWsad3jtCK8OQ072HH2IgomPxE+KLH8ywQF23NR5nzwYY/17nwinB7JLzUEIvUHghBb 1xIE5E7BKQ/66MKshdIwpbZ7O0GfE7Er0KRRZUHdVpTJTKTV8wI0morpp5yHT+FLS4HG7sSEf1D KW7eZXBxmAqDWGLDSphtgi8ZmxOETuQ= X-Received: by 2002:a05:600c:1c91:b0:434:f219:6b28 with SMTP id 5b1f17b1804b1-43668b499f6mr272074075e9.24.1735572331112; Mon, 30 Dec 2024 07:25:31 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c84840asm30283337f8f.61.2024.12.30.07.25.30 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 30 Dec 2024 07:25:30 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Richard Henderson <richard.henderson@linaro.org>, Helge Deller <deller@gmx.de>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH v3 2/5] hw/hppa: Reset vCPUs calling resettable_reset() Date: Mon, 30 Dec 2024 16:25:16 +0100 Message-ID: <20241230152519.86291-3-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241230152519.86291-1-philmd@linaro.org> References: <20241230152519.86291-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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 |
hppa CPU reset and speedup
|
expand
|
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index 65259308e2e..8230f43e41c 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -655,12 +655,12 @@ static void hppa_machine_reset(MachineState *ms, ResetType type) for (i = 0; i < smp_cpus; i++) { CPUState *cs = CPU(cpu[i]); + /* reset CPU */ + resettable_reset(OBJECT(cs), RESET_TYPE_COLD); + cpu_set_pc(cs, firmware_entry); cpu[i]->env.psw = PSW_Q; cpu[i]->env.gr[5] = CPU_HPA + i * 0x1000; - - cs->exception_index = -1; - cs->halted = 0; } /* already initialized by machine_hppa_init()? */ diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c index d784bcdd602..41538d39d62 100644 --- a/target/hppa/cpu.c +++ b/target/hppa/cpu.c @@ -204,6 +204,7 @@ static void hppa_cpu_reset_hold(Object *obj, ResetType type) scc->parent_phases.hold(obj, type); } cs->exception_index = -1; + cs->halted = 0; memset(env, 0, offsetof(CPUHPPAState, end_reset_fields));