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 --- 37 unchanged lines hidden (view full) --- 46 Request::Flags memAccessFlags; 47 48 /// Constructor 49 Memory(const char *mnem, ExtMachInst _machInst, OpClass __opClass) 50 : AlphaStaticInst(mnem, _machInst, __opClass) 51 { 52 } 53 |
54 std::string generateDisassembly( 55 Addr pc, const SymbolTable *symtab) const override; |
56 }; 57 58 /** 59 * Base class for memory-format instructions using a 32-bit 60 * displacement (i.e. most of them). 61 */ 62 class MemoryDisp32 : public Memory 63 { --- 19 unchanged lines hidden (view full) --- 83 { 84 protected: 85 /// Constructor 86 MemoryNoDisp(const char *mnem, ExtMachInst _machInst, OpClass __opClass) 87 : Memory(mnem, _machInst, __opClass) 88 { 89 } 90 |
91 std::string generateDisassembly( 92 Addr pc, const SymbolTable *symtab) const override; |
93 }; 94}}; 95 96 97output decoder {{ 98 std::string 99 Memory::generateDisassembly(Addr pc, const SymbolTable *symtab) const 100 { --- 23 unchanged lines hidden (view full) --- 124 */ 125 class %(class_name)s : public %(base_class)s 126 { 127 public: 128 129 /// Constructor. 130 %(class_name)s(ExtMachInst machInst); 131 |
132 Fault execute(ExecContext *, Trace::InstRecord *) const override; 133 Fault initiateAcc(ExecContext *, Trace::InstRecord *) const override; 134 Fault completeAcc(PacketPtr, ExecContext *, 135 Trace::InstRecord *) const override; |
136 }; 137}}; 138 139def template LoadStoreConstructor {{ 140 %(class_name)s::%(class_name)s(ExtMachInst machInst) 141 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 142 { 143 %(constructor)s; --- 373 unchanged lines hidden --- |