summaryrefslogtreecommitdiffstats
path: root/tester/covoar/CoverageReaderQEMU.h
blob: 11ad7209b40eb323021c6355bb0b5da9ad745431 (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
/*! @file CoverageReaderQEMU.h
 *  @brief CoverageReaderQEMU Specification
 *
 *  This file contains the specification of the CoverageReaderQEMU class.
 */

#ifndef __COVERAGE_READER_QEMU_H__
#define __COVERAGE_READER_QEMU_H__

#include <fstream>

#include "CoverageReaderBase.h"
#include "ExecutableInfo.h"

namespace Coverage {

  /*! @class CoverageReaderQEMU
   *
   *  This class implements the functionality which reads a coverage map
   *  file produced by QEMU.  Since the SPARC has 32-bit instructions,
   *  QEMU produces a file with an integer for each 32-bit word.  The
   *  integer will have the least significant bit set if the address
   *  was executed.  QEMU also supports reporting branch information.
   *  Several bits are set to indicate whether a branch was taken and
   *  NOT taken.
@verbatim
TBD
@endverbatim
   */
  class CoverageReaderQEMU : public CoverageReaderBase {

  public:

    /* Inherit documentation from base class. */
    CoverageReaderQEMU();

    /* Inherit documentation from base class. */
    virtual ~CoverageReaderQEMU();

    /* Inherit documentation from base class. */
    void processFile(
      const std::string&    file,
      ExecutableInfo* const executableInformation
    );
  };

}
#endif