main.isa (12234:78ece221f9f5) main.isa (12236:126ac9da6050)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2003-2005 The Regents of The University of Michigan
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

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

280 ss << ",";
281 printReg(ss, _destRegIdx[0]);
282 }
283
284 return ss.str();
285 }
286}};
287
1// -*- mode:c++ -*-
2
3// Copyright (c) 2003-2005 The Regents of The University of Michigan
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

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

280 ss << ",";
281 printReg(ss, _destRegIdx[0]);
282 }
283
284 return ss.str();
285 }
286}};
287
288// Declarations for execute() methods.
289def template BasicExecDeclare {{
290 Fault execute(ExecContext *, Trace::InstRecord *) const;
291}};
292
293// Basic instruction class declaration template.
294def template BasicDeclare {{
295 /**
296 * Static instruction class for "%(mnemonic)s".
297 */
298 class %(class_name)s : public %(base_class)s
299 {
300 public:
301 /// Constructor.
302 %(class_name)s(ExtMachInst machInst);
303
288// Basic instruction class declaration template.
289def template BasicDeclare {{
290 /**
291 * Static instruction class for "%(mnemonic)s".
292 */
293 class %(class_name)s : public %(base_class)s
294 {
295 public:
296 /// Constructor.
297 %(class_name)s(ExtMachInst machInst);
298
304 %(BasicExecDeclare)s
299 Fault execute(ExecContext *, Trace::InstRecord *) const;
305 };
306}};
307
308// Basic instruction class constructor template.
309def template BasicConstructor {{
310 %(class_name)s::%(class_name)s(ExtMachInst machInst)
311 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s)
312 {

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

378 flags[IsNop] = true;
379 }
380
381 ~Nop() { }
382
383 std::string
384 generateDisassembly(Addr pc, const SymbolTable *symtab) const;
385
300 };
301}};
302
303// Basic instruction class constructor template.
304def template BasicConstructor {{
305 %(class_name)s::%(class_name)s(ExtMachInst machInst)
306 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s)
307 {

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

373 flags[IsNop] = true;
374 }
375
376 ~Nop() { }
377
378 std::string
379 generateDisassembly(Addr pc, const SymbolTable *symtab) const;
380
386 %(BasicExecDeclare)s
381 Fault execute(ExecContext *, Trace::InstRecord *) const;
387 };
388
389 /// Helper function for decoding nops. Substitute Nop object
390 /// for original inst passed in as arg (and delete latter).
391 static inline
392 AlphaStaticInst *
393 makeNop(AlphaStaticInst *inst)
394 {

--- 76 unchanged lines hidden ---
382 };
383
384 /// Helper function for decoding nops. Substitute Nop object
385 /// for original inst passed in as arg (and delete latter).
386 static inline
387 AlphaStaticInst *
388 makeNop(AlphaStaticInst *inst)
389 {

--- 76 unchanged lines hidden ---