Received: from eggs.gnu.org ([140.186.70.92]:48038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFYBl-0005e6-UH for qemu-devel@nongnu.org; Thu, 28 Apr 2011 16:51:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFYBl-0005gM-2h for qemu-devel@nongnu.org; Thu, 28 Apr 2011 16:51:53 -0400 Received: from mail-pw0-f45.google.com ([209.85.160.45]:41062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFYBk-0005Yq-UR for qemu-devel@nongnu.org; Thu, 28 Apr 2011 16:51:53 -0400 Received: by mail-pw0-f45.google.com with SMTP id 6so1870069pwi.4 for ; Thu, 28 Apr 2011 13:51:52 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Thu, 28 Apr 2011 13:51:08 -0700 Message-Id: <1304023875-25040-27-git-send-email-rth@twiddle.net> In-Reply-To: <1304023875-25040-1-git-send-email-rth@twiddle.net> References: <1304023875-25040-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 26/33] target-alpha: Include the PCC_OFS in the RPCC return value. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Richard Henderson --- target-alpha/op_helper.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c index 91ef90a..42fec07 100644 --- a/target-alpha/op_helper.c +++ b/target-alpha/op_helper.c @@ -66,7 +66,8 @@ static void QEMU_NORETURN arith_excp(int exc, uint64_t mask) uint64_t helper_load_pcc (void) { /* ??? This isn't a timer for which we have any rate info. */ - return (uint32_t)cpu_get_real_ticks(); + uint64_t ret = env->pcc_ofs; + return ret << 32 | (uint32_t)cpu_get_real_ticks(); } uint64_t helper_load_fpcr (void) -- 1.7.4.4