summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKeith Packard2021-01-08 23:42:54 +0100
committerAlex Bennée2021-01-18 11:05:06 +0100
commit4d834039c2107cb86931cb3f22ca3de6e4e42b06 (patch)
tree2c278742939745f9a9c84aeb0253f12867a7634e /include
parentriscv: Add semihosting support for user mode (diff)
downloadqemu-4d834039c2107cb86931cb3f22ca3de6e4e42b06.tar.gz
qemu-4d834039c2107cb86931cb3f22ca3de6e4e42b06.tar.xz
qemu-4d834039c2107cb86931cb3f22ca3de6e4e42b06.zip
semihosting: Implement SYS_ELAPSED and SYS_TICKFREQ
These are part of Semihosting for AArch32 and AArch64 Release 2.0 Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20210107170717.2098982-8-keithp@keithp.com> Message-Id: <20210108224256.2321-19-alex.bennee@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/timer.h b/include/qemu/timer.h
index 61296ea980..1678238384 100644
--- a/include/qemu/timer.h
+++ b/include/qemu/timer.h
@@ -808,6 +808,8 @@ static inline int64_t get_clock_realtime(void)
return tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000);
}
+extern int64_t clock_start;
+
/* Warning: don't insert tracepoints into these functions, they are
also used by simpletrace backend and tracepoints would cause
an infinite recursion! */