Deleted Added
sdiff udiff text old ( 7620:3d8a23caa1ef ) new ( 7626:bdd926760470 )
full compact
1// Copyright (c) 2008 The Hewlett-Packard Development Company
2// All rights reserved.
3//
4// The license below extends only to copyright in the software and shall
5// not be construed as granting a license to any other intellectual
6// property including but not limited to intellectual property relating
7// to a hardware implementation of the functionality of the software
8// licensed hereunder. You may use the software subject to the license

--- 39 unchanged lines hidden (view full) ---

48 std::string message;
49 uint8_t cc;
50
51 public:
52 MicroDebugBase(ExtMachInst _machInst, const char * mnem,
53 const char * instMnem, uint64_t setFlags,
54 std::string _message, uint8_t _cc);
55
56 std::string generateDisassembly(Addr pc,
57 const SymbolTable *symtab) const;
58 };
59}};
60
61def template MicroDebugDeclare {{
62 class %(class_name)s : public %(base_class)s
63 {
64 public:
65 %(class_name)s(ExtMachInst _machInst, const char * instMnem,
66 uint64_t setFlags, std::string _message, uint8_t _cc);
67
68 %(BasicExecDeclare)s
69 };
70}};
71
72def template MicroDebugExecute {{
73 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc,
74 Trace::InstRecord *traceData) const
75 {

--- 4 unchanged lines hidden (view full) ---

80 }
81 return NoFault;
82 }
83}};
84
85output decoder {{
86 inline MicroDebugBase::MicroDebugBase(
87 ExtMachInst machInst, const char * mnem, const char * instMnem,
88 uint64_t setFlags, std::string _message, uint8_t _cc) :
89 X86MicroopBase(machInst, mnem, instMnem,
90 setFlags, No_OpClass),
91 message(_message), cc(_cc)
92 {
93 }
94}};
95
96def template MicroDebugConstructor {{
97 inline %(class_name)s::%(class_name)s(
98 ExtMachInst machInst, const char * instMnem, uint64_t setFlags,
99 std::string _message, uint8_t _cc) :
100 %(base_class)s(machInst, "%(func)s", instMnem,
101 setFlags, _message, _cc)
102 {
103 %(constructor)s;
104 }
105}};
106
107output decoder {{
108 std::string MicroDebugBase::generateDisassembly(Addr pc,
109 const SymbolTable *symtab) const
110 {
111 std::stringstream response;

--- 65 unchanged lines hidden ---