system.hh (10255:b71e6c577768) system.hh (10466:73b7549d979e)
1/*
1/*
2 * Copyright (c) 2012 ARM Limited
2 * Copyright (c) 2012, 2014 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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

--- 35 unchanged lines hidden (view full) ---

46
47#ifndef __SYSTEM_HH__
48#define __SYSTEM_HH__
49
50#include <string>
51#include <utility>
52#include <vector>
53
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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

--- 35 unchanged lines hidden (view full) ---

46
47#ifndef __SYSTEM_HH__
48#define __SYSTEM_HH__
49
50#include <string>
51#include <utility>
52#include <vector>
53
54#include "arch/isa_traits.hh"
54#include "base/loader/symtab.hh"
55#include "base/misc.hh"
56#include "base/statistics.hh"
55#include "base/loader/symtab.hh"
56#include "base/misc.hh"
57#include "base/statistics.hh"
58#include "config/the_isa.hh"
57#include "cpu/pc_event.hh"
58#include "enums/MemoryMode.hh"
59#include "kern/system_events.hh"
60#include "mem/mem_object.hh"
61#include "mem/port.hh"
62#include "mem/port_proxy.hh"
63#include "mem/physical.hh"
64#include "params/System.hh"

--- 199 unchanged lines hidden (view full) ---

264 * Check if a physical address is within a range of a memory that
265 * is part of the global address map.
266 *
267 * @param addr A physical address
268 * @return Whether the address corresponds to a memory
269 */
270 bool isMemAddr(Addr addr) const;
271
59#include "cpu/pc_event.hh"
60#include "enums/MemoryMode.hh"
61#include "kern/system_events.hh"
62#include "mem/mem_object.hh"
63#include "mem/port.hh"
64#include "mem/port_proxy.hh"
65#include "mem/physical.hh"
66#include "params/System.hh"

--- 199 unchanged lines hidden (view full) ---

266 * Check if a physical address is within a range of a memory that
267 * is part of the global address map.
268 *
269 * @param addr A physical address
270 * @return Whether the address corresponds to a memory
271 */
272 bool isMemAddr(Addr addr) const;
273
274 /**
275 * Get the page bytes for the ISA.
276 */
277 Addr getPageBytes() const { return TheISA::PageBytes; }
278
279 /**
280 * Get the number of bits worth of in-page adress for the ISA.
281 */
282 Addr getPageShift() const { return TheISA::PageShift; }
283
272 protected:
273
274 PhysicalMemory physmem;
275
276 Enums::MemoryMode memoryMode;
277
278 const unsigned int _cacheLineSize;
279

--- 269 unchanged lines hidden ---
284 protected:
285
286 PhysicalMemory physmem;
287
288 Enums::MemoryMode memoryMode;
289
290 const unsigned int _cacheLineSize;
291

--- 269 unchanged lines hidden ---