Would have saved me much debugging time if these
had been in there previously.
{
// chunkSize must be a power of two
assert(chunkSize == 0 || isPowerOf2(chunkSize));
+ assert(totalSize >= 0);
// set up initial chunk.
curAddr = startAddr;
* allocated Request object. */
void setPhys(Addr _paddr, int _size, int _flags)
{
+ assert(_size >= 0);
paddr = _paddr;
size = _size;
flags = _flags;
* allocated Request object. */
void setVirt(int _asid, Addr _vaddr, int _size, int _flags, Addr _pc)
{
+ assert(_size >= 0);
asid = _asid;
vaddr = _vaddr;
size = _size;