]> git.proxmox.com Git - qemu.git/blobdiff - target-alpha/op_helper.c
target-alpha: Implement RPCC.
[qemu.git] / target-alpha / op_helper.c
index bfc095cc8a4004b1539241236881dbe28230aa89..ff5ae26abeedb9adfcb127d2ee465bc81cdfff48 100644 (file)
@@ -21,6 +21,7 @@
 #include "host-utils.h"
 #include "softfloat.h"
 #include "helper.h"
+#include "qemu-timer.h"
 
 /*****************************************************************************/
 /* Exceptions processing helpers */
@@ -33,8 +34,8 @@ void QEMU_NORETURN helper_excp (int excp, int error)
 
 uint64_t helper_load_pcc (void)
 {
-    /* XXX: TODO */
-    return 0;
+    /* ??? This isn't a timer for which we have any rate info.  */
+    return (uint32_t)cpu_get_real_ticks();
 }
 
 uint64_t helper_load_fpcr (void)