Patchwork [21/24] target-alpha: Include the PCC_OFS in the RPCC return value.

login
register
mail settings
Submitter Richard Henderson
Date April 19, 2011, 3:04 p.m.
Message ID <1303225501-12778-22-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/91997/
State New
Headers show

Comments

Richard Henderson - April 19, 2011, 3:04 p.m.
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 target-alpha/op_helper.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c
index cc8a33d..5902cd6 100644
--- a/target-alpha/op_helper.c
+++ b/target-alpha/op_helper.c
@@ -44,7 +44,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)