pal.isa (6076:e141cc7896ce) pal.isa (6181:19fedb1e5ded)
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

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

150 class HwLoadStore : public Memory
151 {
152 protected:
153
154 /// Displacement for EA calculation (signed).
155 int16_t disp;
156
157 /// Constructor
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

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

150 class HwLoadStore : public Memory
151 {
152 protected:
153
154 /// Displacement for EA calculation (signed).
155 int16_t disp;
156
157 /// Constructor
158 HwLoadStore(const char *mnem, ExtMachInst _machInst, OpClass __opClass,
159 StaticInstPtr _eaCompPtr = nullStaticInstPtr,
160 StaticInstPtr _memAccPtr = nullStaticInstPtr);
158 HwLoadStore(const char *mnem, ExtMachInst _machInst, OpClass __opClass);
161
162 std::string
163 generateDisassembly(Addr pc, const SymbolTable *symtab) const;
164 };
165}};
166
167
168output decoder {{
169 inline
170 HwLoadStore::HwLoadStore(const char *mnem, ExtMachInst _machInst,
159
160 std::string
161 generateDisassembly(Addr pc, const SymbolTable *symtab) const;
162 };
163}};
164
165
166output decoder {{
167 inline
168 HwLoadStore::HwLoadStore(const char *mnem, ExtMachInst _machInst,
171 OpClass __opClass,
172 StaticInstPtr _eaCompPtr,
173 StaticInstPtr _memAccPtr)
174 : Memory(mnem, _machInst, __opClass, _eaCompPtr, _memAccPtr),
175 disp(HW_LDST_DISP)
169 OpClass __opClass)
170 : Memory(mnem, _machInst, __opClass), disp(HW_LDST_DISP)
176 {
177 memAccessFlags.clear();
178 if (HW_LDST_PHYS) memAccessFlags.set(Request::PHYSICAL);
179 if (HW_LDST_ALT) memAccessFlags.set(Request::ALTMODE);
180 if (HW_LDST_VPTE) memAccessFlags.set(Request::VPTE);
181 if (HW_LDST_LOCK) memAccessFlags.set(Request::LLSC);
182 }
183

--- 96 unchanged lines hidden ---
171 {
172 memAccessFlags.clear();
173 if (HW_LDST_PHYS) memAccessFlags.set(Request::PHYSICAL);
174 if (HW_LDST_ALT) memAccessFlags.set(Request::ALTMODE);
175 if (HW_LDST_VPTE) memAccessFlags.set(Request::VPTE);
176 if (HW_LDST_LOCK) memAccessFlags.set(Request::LLSC);
177 }
178

--- 96 unchanged lines hidden ---