system.cc (5512:755fcaf7a4cf) | system.cc (5530:bbfff6d0c42c) |
---|---|
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; --- 271 unchanged lines hidden (view full) --- 280const char *System::MemoryModeStrings[3] = {"invalid", "atomic", 281 "timing"}; 282 283#if !FULL_SYSTEM 284 285System * 286SystemParams::create() 287{ | 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; --- 271 unchanged lines hidden (view full) --- 280const char *System::MemoryModeStrings[3] = {"invalid", "atomic", 281 "timing"}; 282 283#if !FULL_SYSTEM 284 285System * 286SystemParams::create() 287{ |
288 System::Params *p = new System::Params; 289 p->name = name; 290 p->physmem = physmem; 291 p->mem_mode = mem_mode; 292 return new System(p); | 288 return new System(this); |
293} 294 295#endif | 289} 290 291#endif |