1/* 2 * Copyright (c) 2002-2005 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; --- 576 unchanged lines hidden (view full) --- 585 params->phase = phase; 586 params->clock = clock; 587 params->functionTrace = function_trace; 588 params->functionTraceStart = function_trace_start; 589 params->width = width; 590 params->simulate_stalls = simulate_stalls; 591 params->system = system; 592 params->cpu_id = cpu_id; |
593 params->tracer = tracer; |
594 595#if FULL_SYSTEM 596 params->itb = itb; 597 params->dtb = dtb; 598 params->profile = profile; 599 params->do_quiesce = do_quiesce; 600 params->do_checkpoint_insts = do_checkpoint_insts; 601 params->do_statistics_insts = do_statistics_insts; 602#else 603 if (workload.size() != 1) 604 panic("only one workload allowed"); 605 params->process = workload[0]; 606#endif 607 608 AtomicSimpleCPU *cpu = new AtomicSimpleCPU(params); 609 return cpu; 610} |