specop.isa (5293:5ea2a6dc8f17) specop.isa (5449:89b696c8b754)
1// Copyright (c) 2007 The Hewlett-Packard Development Company
1// Copyright (c) 2007-2008 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
9// use which is NOT directed to receiving any direct monetary

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

90
91 MicroHalt(ExtMachInst _machInst, const char * instMnem) :
92 X86MicroopBase(_machInst, "halt", instMnem,
93 false, false, false, false, No_OpClass)
94 {
95 }
96
97 %(BasicExecDeclare)s
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
9// use which is NOT directed to receiving any direct monetary

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

90
91 MicroHalt(ExtMachInst _machInst, const char * instMnem) :
92 X86MicroopBase(_machInst, "halt", instMnem,
93 false, false, false, false, No_OpClass)
94 {
95 }
96
97 %(BasicExecDeclare)s
98
99 std::string generateDisassembly(Addr pc,
100 const SymbolTable *symtab) const;
98 };
99}};
100
101def template MicroFaultDeclare {{
102 class %(class_name)s : public %(base_class)s
103 {
104 private:
105 void buildMe();

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

196 printMnemonic(response, instMnem, mnemonic);
197 if(fault)
198 response << fault->name();
199 else
200 response << "No Fault";
201
202 return response.str();
203 }
101 };
102}};
103
104def template MicroFaultDeclare {{
105 class %(class_name)s : public %(base_class)s
106 {
107 private:
108 void buildMe();

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

199 printMnemonic(response, instMnem, mnemonic);
200 if(fault)
201 response << fault->name();
202 else
203 response << "No Fault";
204
205 return response.str();
206 }
207
208 std::string MicroHalt::generateDisassembly(Addr pc,
209 const SymbolTable *symtab) const
210 {
211 std::stringstream response;
212
213 printMnemonic(response, instMnem, mnemonic);
214
215 return response.str();
216 }
204}};
205
206let {{
207 class Fault(X86Microop):
208 className = "MicroFault"
209 def __init__(self, fault, flags=None):
210 self.fault = fault
211 if flags:

--- 40 unchanged lines hidden ---
217}};
218
219let {{
220 class Fault(X86Microop):
221 className = "MicroFault"
222 def __init__(self, fault, flags=None):
223 self.fault = fault
224 if flags:

--- 40 unchanged lines hidden ---