system.cc (11838:0b311345ac72) system.cc (11839:dd6df2e47c14)
1/*
2 * Copyright (c) 2011-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

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

48#include "sim/system.hh"
49
50#include "arch/remote_gdb.hh"
51#include "arch/utility.hh"
52#include "base/loader/object_file.hh"
53#include "base/loader/symtab.hh"
54#include "base/str.hh"
55#include "base/trace.hh"
1/*
2 * Copyright (c) 2011-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

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

48#include "sim/system.hh"
49
50#include "arch/remote_gdb.hh"
51#include "arch/utility.hh"
52#include "base/loader/object_file.hh"
53#include "base/loader/symtab.hh"
54#include "base/str.hh"
55#include "base/trace.hh"
56#include "config/use_kvm.hh"
57#if USE_KVM
58#include "cpu/kvm/vm.hh"
59#endif
56#include "cpu/thread_context.hh"
57#include "debug/Loader.hh"
58#include "debug/WorkItems.hh"
59#include "mem/abstract_mem.hh"
60#include "mem/physical.hh"
61#include "params/System.hh"
62#include "sim/byteswap.hh"
63#include "sim/debug.hh"

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

85 multiThread(p->multi_thread),
86 pagePtr(0),
87 init_param(p->init_param),
88 physProxy(_systemPort, p->cache_line_size),
89 kernelSymtab(nullptr),
90 kernel(nullptr),
91 loadAddrMask(p->load_addr_mask),
92 loadAddrOffset(p->load_offset),
60#include "cpu/thread_context.hh"
61#include "debug/Loader.hh"
62#include "debug/WorkItems.hh"
63#include "mem/abstract_mem.hh"
64#include "mem/physical.hh"
65#include "params/System.hh"
66#include "sim/byteswap.hh"
67#include "sim/debug.hh"

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

89 multiThread(p->multi_thread),
90 pagePtr(0),
91 init_param(p->init_param),
92 physProxy(_systemPort, p->cache_line_size),
93 kernelSymtab(nullptr),
94 kernel(nullptr),
95 loadAddrMask(p->load_addr_mask),
96 loadAddrOffset(p->load_offset),
97#if USE_KVM
98 kvmVM(p->kvm_vm),
99#else
100 kvmVM(nullptr),
101#endif
93 physmem(name() + ".physmem", p->memories, p->mmap_using_noreserve),
94 memoryMode(p->mem_mode),
95 _cacheLineSize(p->cache_line_size),
96 workItemsBegin(0),
97 workItemsEnd(0),
98 numWorkIds(p->num_work_ids),
99 thermalModel(p->thermal_model),
100 _params(p),
101 totalNumInsts(0),
102 instEventQueue("system instruction-based event queue")
103{
104 // add self to global system list
105 systemList.push_back(this);
106
102 physmem(name() + ".physmem", p->memories, p->mmap_using_noreserve),
103 memoryMode(p->mem_mode),
104 _cacheLineSize(p->cache_line_size),
105 workItemsBegin(0),
106 workItemsEnd(0),
107 numWorkIds(p->num_work_ids),
108 thermalModel(p->thermal_model),
109 _params(p),
110 totalNumInsts(0),
111 instEventQueue("system instruction-based event queue")
112{
113 // add self to global system list
114 systemList.push_back(this);
115
116#if USE_KVM
117 if (kvmVM) {
118 kvmVM->setSystem(this);
119 }
120#endif
121
107 if (FullSystem) {
108 kernelSymtab = new SymbolTable;
109 if (!debugSymbolTable)
110 debugSymbolTable = new SymbolTable;
111 }
112
113 // check if the cache line size is a value known to work
114 if (!(_cacheLineSize == 16 || _cacheLineSize == 32 ||

--- 373 unchanged lines hidden ---
122 if (FullSystem) {
123 kernelSymtab = new SymbolTable;
124 if (!debugSymbolTable)
125 debugSymbolTable = new SymbolTable;
126 }
127
128 // check if the cache line size is a value known to work
129 if (!(_cacheLineSize == 16 || _cacheLineSize == 32 ||

--- 373 unchanged lines hidden ---