source: rtems-tools/tester/covoar/Target_powerpc.h @ 3e187ba

5
Last change on this file since 3e187ba was 100f517, checked in by Chris Johns <chrisj@…>, on 05/09/14 at 11:50:37

covoar: Merger the covoar source from rtems-testing.git.

Use waf to build covoar.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*! @file Target_powerpc.h
2 *  @brief Target_powerpc Specification
3 *
4 *  This file contains the specification of the Target_powerpc class.
5 */
6
7#ifndef __TARGET_POWERPC_H__
8#define __TARGET_POWERPC_H__
9
10#include <list>
11#include <string>
12#include "TargetBase.h"
13
14
15namespace Target {
16
17  /*!
18   *
19   *  This class is the class for the powerpc target.
20   *
21   */
22  class Target_powerpc: public TargetBase {
23
24  public:
25
26    /*!
27     *  This method constructs an Target_powerpc instance.
28     */
29    Target_powerpc( std::string targetName );
30
31    /*!
32     *  This method destructs an Target_powerpc instance.
33     */
34    virtual ~Target_powerpc();
35
36    /*!
37     *  This method determines whether the specified line from a
38     *  objdump file is a nop instruction.
39     *
40     *  @param[in] line contains the object dump line to check
41     *  @param[out] size is set to the size in bytes of the nop
42     *
43     *  @return Returns TRUE if the instruction is a nop, FALSE otherwise.
44     */
45    bool isNopLine(
46      const char* const line,
47      int&              size
48    );
49
50    /*!
51     *  This method determines if the specified line from an
52     *  objdump file is a branch instruction.
53     */
54    bool isBranch(
55      const char* const instruction
56    );
57
58  private:
59
60  };
61
62
63  //!
64  //! @brief Constructor Helper
65  //!
66  //! This is a constructor helper for this class which can be used in support
67  //! of factories.
68  //!
69  //! @param [in] Targetname is the name of the Target being constructed.
70  //!
71  //! @return This method constructs a new instance of the Target and returns
72  //!         that to the caller.
73  //!
74  TargetBase *Target_powerpc_Constructor(
75    std::string          targetName
76  );
77
78
79}
80#endif
Note: See TracBrowser for help on using the repository browser.