Deleted Added
sdiff udiff text old ( 5163:f08b480df4c3 ) new ( 5172:4f0e76579e7c )
full compact
1// Copyright (c) 2007 The Hewlett-Packard Development Company
2// All rights reserved.
3//
4// Redistribution and use of this software in source and binary forms,
5// with or without modification, are permitted provided that the
6// following conditions are met:
7//
8// The software must be used only for Non-Commercial Use which means any

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

72 Fault _fault, uint8_t _cc);
73
74 MicroFaultBase(ExtMachInst _machInst, const char * instMnem,
75 Fault _fault, uint8_t _cc);
76
77 std::string generateDisassembly(Addr pc,
78 const SymbolTable *symtab) const;
79 };
80}};
81
82def template MicroFaultDeclare {{
83 class %(class_name)s : public %(base_class)s
84 {
85 private:
86 void buildMe();
87 public:

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

106 //Return the fault we were constructed with
107 return fault;
108 } else {
109 return NoFault;
110 }
111 }
112}};
113
114output decoder {{
115 inline MicroFaultBase::MicroFaultBase(
116 ExtMachInst machInst, const char * instMnem,
117 Fault _fault, uint8_t _cc) :
118 X86MicroopBase(machInst, "fault", instMnem,
119 false, false, false, false, No_OpClass),
120 fault(_fault), cc(_cc)
121 {

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

204 decoder_output = MicroFaultConstructor.subst(iop)
205 iop = InstObjParams("fault", "MicroFaultFlags", "MicroFaultBase",
206 {"code": "",
207 "cond_test": "true"})
208 exec_output += MicroFaultExecute.subst(iop)
209 header_output += MicroFaultDeclare.subst(iop)
210 decoder_output += MicroFaultConstructor.subst(iop)
211 microopClasses["fault"] = Fault
212}};