1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 54 unchanged lines hidden (view full) --- 63#include "mem/packet_access.hh" 64#include "mem/physical.hh" 65#include "sim/eventq.hh" 66 67using namespace std; 68using namespace TheISA; 69 70PhysicalMemory::PhysicalMemory(const Params *p) |
71 : MemObject(p), pmemAddr(NULL), lat(p->latency), lat_var(p->latency_var), |
72 _size(params()->range.size()), _start(params()->range.start) 73{ 74 if (size() % TheISA::PageBytes != 0) 75 panic("Memory Size not divisible by page size\n"); 76 77 if (params()->null) 78 return; 79 --- 38 unchanged lines hidden (view full) --- 118} 119 120PhysicalMemory::~PhysicalMemory() 121{ 122 if (pmemAddr) 123 munmap((char*)pmemAddr, size()); 124} 125 |
126unsigned 127PhysicalMemory::deviceBlockSize() const 128{ 129 //Can accept anysize request 130 return 0; 131} 132 133Tick --- 474 unchanged lines hidden --- |