system.cc (12262:a58c0c323e4f) | system.cc (12272:bcc67ee98e6d) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2011-2014 ARM Limited | 2 * Copyright (c) 2011-2014,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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 142 unchanged lines hidden (view full) --- 153 if (kernel == NULL) 154 fatal("Could not load kernel file %s", params()->kernel); 155 156 // setup entry points 157 kernelStart = kernel->textBase(); 158 kernelEnd = kernel->bssBase() + kernel->bssSize(); 159 kernelEntry = kernel->entryPoint(); 160 | 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 --- 142 unchanged lines hidden (view full) --- 153 if (kernel == NULL) 154 fatal("Could not load kernel file %s", params()->kernel); 155 156 // setup entry points 157 kernelStart = kernel->textBase(); 158 kernelEnd = kernel->bssBase() + kernel->bssSize(); 159 kernelEntry = kernel->entryPoint(); 160 |
161 // If load_addr_mask is set to 0x0, then auto-calculate 162 // the smallest mask to cover all kernel addresses so gem5 163 // can relocate the kernel to a new offset. 164 if (loadAddrMask == 0) { 165 Addr shift_amt = findMsbSet(kernelEnd - kernelStart) + 1; 166 loadAddrMask = ((Addr)1 << shift_amt) - 1; 167 } 168 |
|
161 // load symbols 162 if (!kernel->loadGlobalSymbols(kernelSymtab)) 163 fatal("could not load kernel symbols\n"); 164 165 if (!kernel->loadLocalSymbols(kernelSymtab)) 166 fatal("could not load kernel local symbols\n"); 167 168 if (!kernel->loadGlobalSymbols(debugSymbolTable)) --- 363 unchanged lines hidden --- | 169 // load symbols 170 if (!kernel->loadGlobalSymbols(kernelSymtab)) 171 fatal("could not load kernel symbols\n"); 172 173 if (!kernel->loadLocalSymbols(kernelSymtab)) 174 fatal("could not load kernel local symbols\n"); 175 176 if (!kernel->loadGlobalSymbols(debugSymbolTable)) --- 363 unchanged lines hidden --- |