system.cc (5183:b4decf133fe4) system.cc (5222:bb733a878f85)
1/*
2 * Copyright (c) 2003-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

94 * Load the kernel code into memory
95 */
96 if (params()->kernel == "") {
97 warn("No kernel set for full system simulation. Assuming you know what"
98 " you're doing...\n");
99 } else {
100 // Load kernel code
101 kernel = createObjectFile(params()->kernel);
1/*
2 * Copyright (c) 2003-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

94 * Load the kernel code into memory
95 */
96 if (params()->kernel == "") {
97 warn("No kernel set for full system simulation. Assuming you know what"
98 " you're doing...\n");
99 } else {
100 // Load kernel code
101 kernel = createObjectFile(params()->kernel);
102 warn("kernel located at: %s", params()->kernel);
103
102 if (kernel == NULL)
103 fatal("Could not load kernel file %s", params()->kernel);
104
105 // Load program sections into memory
106 kernel->loadSections(&functionalPort, LoadAddrMask);
107
108 // setup entry points
109 kernelStart = kernel->textBase();

--- 182 unchanged lines hidden ---
104 if (kernel == NULL)
105 fatal("Could not load kernel file %s", params()->kernel);
106
107 // Load program sections into memory
108 kernel->loadSections(&functionalPort, LoadAddrMask);
109
110 // setup entry points
111 kernelStart = kernel->textBase();

--- 182 unchanged lines hidden ---