summaryrefslogtreecommitdiffstats
path: root/src/include/util
diff options
context:
space:
mode:
authorMike Baiocchi <baiocchi@us.ibm.com>2014-01-23 14:51:58 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-02-05 15:59:52 -0600
commitc9e49a109f1f381d8bae380e925f7bb592cc977a (patch)
tree161a0885be196c13ee1f0df33ccc3a58325ee8c5 /src/include/util
parentd452684d349994e0effa03f140a6232f06db6537 (diff)
downloadtalos-hostboot-c9e49a109f1f381d8bae380e925f7bb592cc977a.tar.gz
talos-hostboot-c9e49a109f1f381d8bae380e925f7bb592cc977a.zip
Move isSimicsRunning() check into a util function
Moves the existing isSimicsRunning() support in kernel/timemgr.C to a new utility function. Change-Id: I522b1ab9967a3c3c894fba0525d2e6ffb95cded9 RTC: 94883 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8281 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/util')
-rw-r--r--src/include/util/misc.H40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/include/util/misc.H b/src/include/util/misc.H
new file mode 100644
index 000000000..aa0225632
--- /dev/null
+++ b/src/include/util/misc.H
@@ -0,0 +1,40 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/util/misc.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2014 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+#ifndef __UTIL_MISC_H
+#define __UTIL_MISC_H
+
+
+namespace Util
+{
+ /**
+ * @brief Determines if code is running in a simics environment
+ *
+ * @param[in] void
+ *
+ * @return bool true if running in simics; otherwise false
+ */
+ bool isSimicsRunning( void );
+};
+
+#endif
+
OpenPOWER on IntegriCloud