Deleted Added
sdiff udiff text old ( 12234:78ece221f9f5 ) new ( 12236:126ac9da6050 )
full compact
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
304 %(BasicExecDeclare)s
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
386 %(BasicExecDeclare)s
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 ---