From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:50479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmS6G-0004J5-Ll for qemu-devel@nongnu.org; Wed, 23 Jan 2019 18:38:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmS6F-00047T-6t for qemu-devel@nongnu.org; Wed, 23 Jan 2019 18:38:28 -0500 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:38738) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gmS6E-00044r-By for qemu-devel@nongnu.org; Wed, 23 Jan 2019 18:38:26 -0500 Received: by mail-pg1-x544.google.com with SMTP id g189so1796421pgc.5 for ; Wed, 23 Jan 2019 15:38:26 -0800 (PST) References: <20190123213227.17077-1-aaron@os.amperecomputing.com> <20190123213227.17077-3-aaron@os.amperecomputing.com> From: Richard Henderson Message-ID: <1627fb0b-b2a0-1cb5-71b3-ddeb1f07bf8c@linaro.org> Date: Wed, 23 Jan 2019 15:38:22 -0800 MIME-Version: 1.0 In-Reply-To: <20190123213227.17077-3-aaron@os.amperecomputing.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v11 2/2] target/arm: Add a timer to predict PMU counter overflow List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aaron Lindsay OS , "qemu-arm@nongnu.org" , Peter Maydell , Alistair Francis , Wei Huang , Peter Crosthwaite Cc: "qemu-devel@nongnu.org" , Michael Spradling , Digant Desai On 1/23/19 1:32 PM, Aaron Lindsay OS wrote: > Make PMU overflow interrupts more accurate by using a timer to predict > when they will overflow rather than waiting for an event to occur which > allows us to otherwise check them. > > Signed-off-by: Aaron Lindsay > --- > target/arm/cpu.c | 12 ++++++++ > target/arm/cpu.h | 10 +++++++ > target/arm/helper.c | 72 +++++++++++++++++++++++++++++++++++++++++++-- > 3 files changed, 92 insertions(+), 2 deletions(-) Reviewed-by: Richard Henderson r~