summaryrefslogtreecommitdiffstats
path: root/tester/covoar/Target_i386.h
blob: c9a79cd7b718a168f20081367892c9c0fb975ef5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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 std::string& 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