abstract_mem.cc (13856:c4a7f25aacb4) | abstract_mem.cc (13892:0182a0601f66) |
---|---|
1/* 2 * Copyright (c) 2010-2012,2017 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 --- 43 unchanged lines hidden (view full) --- 52#include "debug/LLSC.hh" 53#include "debug/MemoryAccess.hh" 54#include "mem/packet_access.hh" 55#include "sim/system.hh" 56 57using namespace std; 58 59AbstractMemory::AbstractMemory(const Params *p) : | 1/* 2 * Copyright (c) 2010-2012,2017 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 --- 43 unchanged lines hidden (view full) --- 52#include "debug/LLSC.hh" 53#include "debug/MemoryAccess.hh" 54#include "mem/packet_access.hh" 55#include "sim/system.hh" 56 57using namespace std; 58 59AbstractMemory::AbstractMemory(const Params *p) : |
60 MemObject(p), range(params()->range), pmemAddr(NULL), | 60 ClockedObject(p), range(params()->range), pmemAddr(NULL), |
61 backdoor(params()->range, nullptr, 62 (MemBackdoor::Flags)(MemBackdoor::Readable | 63 MemBackdoor::Writeable)), 64 confTableReported(p->conf_table_reported), inAddrMap(p->in_addr_map), 65 kvmMap(p->kvm_map), _system(NULL) 66{ 67} 68 --- 17 unchanged lines hidden (view full) --- 86 backdoor.ptr(range.interleaved() ? nullptr : pmem_addr); 87 88 pmemAddr = pmem_addr; 89} 90 91void 92AbstractMemory::regStats() 93{ | 61 backdoor(params()->range, nullptr, 62 (MemBackdoor::Flags)(MemBackdoor::Readable | 63 MemBackdoor::Writeable)), 64 confTableReported(p->conf_table_reported), inAddrMap(p->in_addr_map), 65 kvmMap(p->kvm_map), _system(NULL) 66{ 67} 68 --- 17 unchanged lines hidden (view full) --- 86 backdoor.ptr(range.interleaved() ? nullptr : pmem_addr); 87 88 pmemAddr = pmem_addr; 89} 90 91void 92AbstractMemory::regStats() 93{ |
94 MemObject::regStats(); | 94 ClockedObject::regStats(); |
95 96 using namespace Stats; 97 98 assert(system()); 99 100 bytesRead 101 .init(system()->maxMasters()) 102 .name(name() + ".bytes_read") --- 359 unchanged lines hidden --- | 95 96 using namespace Stats; 97 98 assert(system()); 99 100 bytesRead 101 .init(system()->maxMasters()) 102 .name(name() + ".bytes_read") --- 359 unchanged lines hidden --- |