basicmem.isa (8342:77d12d8f7971) basicmem.isa (12236:126ac9da6050)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2006-2007 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

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

40 */
41 class %(class_name)s : public %(base_class)s
42 {
43 public:
44
45 /// Constructor.
46 %(class_name)s(ExtMachInst machInst);
47
1// -*- mode:c++ -*-
2
3// Copyright (c) 2006-2007 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

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

40 */
41 class %(class_name)s : public %(base_class)s
42 {
43 public:
44
45 /// Constructor.
46 %(class_name)s(ExtMachInst machInst);
47
48 %(BasicExecDeclare)s
49
50 %(EACompDeclare)s
51
52 %(InitiateAccDeclare)s
53
54 %(CompleteAccDeclare)s
48 Fault execute(ExecContext *, Trace::InstRecord *) const;
49 Fault eaComp(ExecContext *, Trace::InstRecord *) const;
50 Fault initiateAcc(ExecContext *, Trace::InstRecord *) const;
51 Fault completeAcc(PacketPtr, ExecContext *,
52 Trace::InstRecord *) const;
55 };
56}};
57
58let {{
59 def doMemFormat(code, execute, faultCode, name, Name, asi, opt_flags, postacc_code = ''):
60 addrCalcReg = 'EA = Rs1 + Rs2;'
61 addrCalcImm = 'EA = Rs1 + imm;'
62 iop = InstObjParams(name, Name, 'Mem',

--- 73 unchanged lines hidden ---
53 };
54}};
55
56let {{
57 def doMemFormat(code, execute, faultCode, name, Name, asi, opt_flags, postacc_code = ''):
58 addrCalcReg = 'EA = Rs1 + Rs2;'
59 addrCalcImm = 'EA = Rs1 + imm;'
60 iop = InstObjParams(name, Name, 'Mem',

--- 73 unchanged lines hidden ---