request.hh (5714:76abee886def) | request.hh (5731:453f320129a1) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 158 unchanged lines hidden (view full) --- 167 validContextAndThreadIds = true; 168 } 169 170 /** 171 * Set up a physical (e.g. device) request in a previously 172 * allocated Request object. */ 173 void setPhys(Addr _paddr, int _size, int _flags) 174 { | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 158 unchanged lines hidden (view full) --- 167 validContextAndThreadIds = true; 168 } 169 170 /** 171 * Set up a physical (e.g. device) request in a previously 172 * allocated Request object. */ 173 void setPhys(Addr _paddr, int _size, int _flags) 174 { |
175 assert(_size >= 0); |
|
175 paddr = _paddr; 176 size = _size; 177 flags = _flags; 178 time = curTick; 179 validPaddr = true; 180 validAsidVaddr = false; 181 validPC = false; 182 validExData = false; 183 mmapedIpr = false; 184 } 185 186 /** 187 * Set up a virtual (e.g., CPU) request in a previously 188 * allocated Request object. */ 189 void setVirt(int _asid, Addr _vaddr, int _size, int _flags, Addr _pc) 190 { | 176 paddr = _paddr; 177 size = _size; 178 flags = _flags; 179 time = curTick; 180 validPaddr = true; 181 validAsidVaddr = false; 182 validPC = false; 183 validExData = false; 184 mmapedIpr = false; 185 } 186 187 /** 188 * Set up a virtual (e.g., CPU) request in a previously 189 * allocated Request object. */ 190 void setVirt(int _asid, Addr _vaddr, int _size, int _flags, Addr _pc) 191 { |
192 assert(_size >= 0); |
|
191 asid = _asid; 192 vaddr = _vaddr; 193 size = _size; 194 flags = _flags; 195 pc = _pc; 196 time = curTick; 197 validPaddr = false; 198 validAsidVaddr = true; --- 94 unchanged lines hidden --- | 193 asid = _asid; 194 vaddr = _vaddr; 195 size = _size; 196 flags = _flags; 197 pc = _pc; 198 time = curTick; 199 validPaddr = false; 200 validAsidVaddr = true; --- 94 unchanged lines hidden --- |