mem.isa (12234:78ece221f9f5) | mem.isa (12236:126ac9da6050) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2009 The University of Edinburgh 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 --- 30 unchanged lines hidden (view full) --- 39 */ 40 class %(class_name)s : public %(base_class)s 41 { 42 public: 43 44 /// Constructor. 45 %(class_name)s(ExtMachInst machInst); 46 | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2009 The University of Edinburgh 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 --- 30 unchanged lines hidden (view full) --- 39 */ 40 class %(class_name)s : public %(base_class)s 41 { 42 public: 43 44 /// Constructor. 45 %(class_name)s(ExtMachInst machInst); 46 |
47 %(BasicExecDeclare)s 48 49 %(InitiateAccDeclare)s 50 51 %(CompleteAccDeclare)s | 47 Fault execute(ExecContext *, Trace::InstRecord *) const; 48 Fault initiateAcc(ExecContext *, Trace::InstRecord *) const; 49 Fault completeAcc(PacketPtr, ExecContext *, Trace::InstRecord *) const; |
52 }; 53}}; 54 55 | 50 }; 51}}; 52 53 |
56def template InitiateAccDeclare {{ 57 Fault initiateAcc(ExecContext *, Trace::InstRecord *) const; 58}}; 59 60 61def template CompleteAccDeclare {{ 62 Fault completeAcc(PacketPtr, ExecContext *, Trace::InstRecord *) const; 63}}; 64 65 | |
66def template LoadStoreConstructor {{ 67 %(class_name)s::%(class_name)s(ExtMachInst machInst) 68 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 69 { 70 %(constructor)s; 71 } 72}}; 73 --- 265 unchanged lines hidden --- | 54def template LoadStoreConstructor {{ 55 %(class_name)s::%(class_name)s(ExtMachInst machInst) 56 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 57 { 58 %(constructor)s; 59 } 60}}; 61 --- 265 unchanged lines hidden --- |