Received: from eggs.gnu.org ([140.186.70.92]:38588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJY6q-0003qd-6m for qemu-devel@nongnu.org; Mon, 09 May 2011 17:35:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJY6p-0006NR-E5 for qemu-devel@nongnu.org; Mon, 09 May 2011 17:35:20 -0400 Received: from mail-iw0-f173.google.com ([209.85.214.173]:38418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJY6p-0006Af-B4 for qemu-devel@nongnu.org; Mon, 09 May 2011 17:35:19 -0400 Received: by mail-iw0-f173.google.com with SMTP id 42so5560360iwl.4 for ; Mon, 09 May 2011 14:35:19 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Mon, 9 May 2011 14:34:39 -0700 Message-Id: <1304976889-29675-26-git-send-email-rth@twiddle.net> In-Reply-To: <1304976889-29675-1-git-send-email-rth@twiddle.net> References: <1304976889-29675-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 25/35] 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