pal.isa (3953:300d526414e6) | pal.isa (5736:426510e758ad) |
---|---|
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 --- 160 unchanged lines hidden (view full) --- 169 inline 170 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) 176 { | 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 --- 160 unchanged lines hidden (view full) --- 169 inline 170 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) 176 { |
177 memAccessFlags = 0; 178 if (HW_LDST_PHYS) memAccessFlags |= PHYSICAL; 179 if (HW_LDST_ALT) memAccessFlags |= ALTMODE; 180 if (HW_LDST_VPTE) memAccessFlags |= VPTE; 181 if (HW_LDST_LOCK) memAccessFlags |= LOCKED; | 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::LOCKED); |
182 } 183 184 std::string 185 HwLoadStore::generateDisassembly(Addr pc, const SymbolTable *symtab) const 186 { 187#ifdef SS_COMPATIBLE_DISASSEMBLY 188 return csprintf("%-10s r%d,%d(r%d)", mnemonic, RA, disp, RB); 189#else --- 90 unchanged lines hidden --- | 182 } 183 184 std::string 185 HwLoadStore::generateDisassembly(Addr pc, const SymbolTable *symtab) const 186 { 187#ifdef SS_COMPATIBLE_DISASSEMBLY 188 return csprintf("%-10s r%d,%d(r%d)", mnemonic, RA, disp, RB); 189#else --- 90 unchanged lines hidden --- |