summaryrefslogtreecommitdiffstats
path: root/tester/covoar/Target_i386.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-05-09 21:50:37 +1000
committerChris Johns <chrisj@rtems.org>2014-06-18 16:48:08 +1200
commit100f517ab37265acdf067e36b6860020ec8b2184 (patch)
tree2316c8b888e11dcbcfbfc66a0c1e31991ea20656 /tester/covoar/Target_i386.h
parent4.11: Add ntp patch. (diff)
downloadrtems-tools-100f517ab37265acdf067e36b6860020ec8b2184.tar.bz2
covoar: Merger the covoar source from rtems-testing.git.
Use waf to build covoar.
Diffstat (limited to 'tester/covoar/Target_i386.h')
-rw-r--r--tester/covoar/Target_i386.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/tester/covoar/Target_i386.h b/tester/covoar/Target_i386.h
new file mode 100644
index 0000000..9c332dd
--- /dev/null
+++ b/tester/covoar/Target_i386.h
@@ -0,0 +1,76 @@
+/*! @file Target_i386.h
+ * @brief Target_i386 Specification
+ *
+ * This file contains the specification of the Target_i386 class.
+ */
+
+#ifndef __TARGET_I386_H__
+#define __TARGET_I386_H__
+
+#include <list>
+#include <string>
+#include "TargetBase.h"
+
+
+namespace Target {
+
+ /*! @class Target_i386
+ *
+ * This class is the class for i386 Target.
+ *
+ */
+ class Target_i386: public TargetBase {
+
+ public:
+
+ /*!
+ * This method constructs an Target_i386 instance.
+ */
+ Target_i386( std::string targetName );
+
+ /*!
+ * This method destructs an Target_i386 instance.
+ */
+ virtual ~Target_i386();
+
+ /*!
+ * This method determines whether the specified line from a
+ * objdump file is a nop instruction.
+ *
+ * @param[in] line contains the object dump line to check
+ * @param[out] size is set to the size in bytes of the nop
+ *
+ * @return Returns TRUE if the instruction is a nop, FALSE otherwise.
+ */
+ bool isNopLine(
+ const char* const line,
+ int& size
+ );
+
+ /* Documentation inherited from base class */
+ virtual uint8_t qemuTakenBit(void);
+
+ /* Documentation inherited from base class */
+ virtual uint8_t qemuNotTakenBit(void);
+
+ private:
+
+ };
+
+ //!
+ //! @brief Constructor Helper
+ //!
+ //! This is a constructor helper for this class which can be used in support
+ //! of factories.
+ //!
+ //! @param [in] Targetname is the name of the Target being constructed.
+ //!
+ //! @return This method constructs a new instance of the Target and returns
+ //! that to the caller.
+ //!
+ TargetBase *Target_i386_Constructor(
+ std::string targetName
+ );
+
+}
+#endif