OpenCores
URL https://opencores.org/ocsvn/fwrisc/fwrisc/trunk

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [fwrisc_ctest_base.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mballance
/*
2
 * fwrisc_ctest_base.h
3
 *
4
 *  Created on: Nov 19, 2018
5
 *      Author: ballance
6
 */
7
 
8
#ifndef INCLUDED_FWRISC_CTEST_BASE_H
9
#define INCLUDED_FWRISC_CTEST_BASE_H
10
#include "fwrisc_instr_tests.h"
11
#include "ElfSymtabReader.h"
12
#include <stack>
13
#include <set>
14
 
15
class fwrisc_ctest_base : public fwrisc_instr_tests {
16
public:
17
        fwrisc_ctest_base(uint32_t timeout);
18
        virtual ~fwrisc_ctest_base();
19
 
20
        virtual void SetUp();
21
 
22
        virtual void exec(uint32_t addr, uint32_t instr);
23
 
24
        void filter_func(const std::string &func) { m_filter_funcs.insert(func); }
25
 
26
protected:
27
        ElfSymtabReader                                                                         m_symtab;
28
 
29
        bool                                                                                            m_trace_funcs;
30
        bool                                                                                            m_trace_instr;
31
 
32
        std::stack<std::pair<Elf32_Addr,Elf32_Addr>>            m_call_stack;
33
        std::set<std::string>                                                           m_filter_funcs;
34
        std::string                                                                                     m_indent;
35
 
36
};
37
 
38
#endif /* INCLUDED_FWRISC_CTEST_BASE_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.