From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:33692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwWTa-00069S-Vk for qemu-devel@nongnu.org; Wed, 20 Feb 2019 13:20:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwWTa-0005x8-8X for qemu-devel@nongnu.org; Wed, 20 Feb 2019 13:20:10 -0500 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:46587) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwWTZ-0005un-VY for qemu-devel@nongnu.org; Wed, 20 Feb 2019 13:20:10 -0500 Received: by mail-pl1-x642.google.com with SMTP id o6so12622787pls.13 for ; Wed, 20 Feb 2019 10:20:09 -0800 (PST) References: <20190219125808.25174-1-peter.maydell@linaro.org> <20190219125808.25174-5-peter.maydell@linaro.org> From: Richard Henderson Message-ID: <70f7f6ea-162c-997d-6658-79c66e90e850@linaro.org> Date: Wed, 20 Feb 2019 10:20:06 -0800 MIME-Version: 1.0 In-Reply-To: <20190219125808.25174-5-peter.maydell@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/8] target/arm/arm-powerctl: Add new arm_set_cpu_on_and_reset() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: patches@linaro.org On 2/19/19 4:58 AM, Peter Maydell wrote: > Currently the Arm arm-powerctl.h APIs allow: > * arm_set_cpu_on(), which powers on a CPU and sets its > initial PC and other startup state > * arm_reset_cpu(), which resets a CPU which is already on > (and fails if the CPU is powered off) > > but there is no way to say "power on a CPU as if it had > just come out of reset and don't do anything else to it". > > Add a new function arm_set_cpu_on_and_reset(), which does this. > > Signed-off-by: Peter Maydell > --- > target/arm/arm-powerctl.h | 16 +++++++++++ > target/arm/arm-powerctl.c | 56 +++++++++++++++++++++++++++++++++++++++ > 2 files changed, 72 insertions(+) Reviewed-by: Richard Henderson r~