atomic.cc (4762:c94e103c83ad) atomic.cc (4776:8c8407243a2c)
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;
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;
593
594#if FULL_SYSTEM
595 params->itb = itb;
596 params->dtb = dtb;
597 params->profile = profile;
598 params->do_quiesce = do_quiesce;
599 params->do_checkpoint_insts = do_checkpoint_insts;
600 params->do_statistics_insts = do_statistics_insts;
601#else
602 if (workload.size() != 1)
603 panic("only one workload allowed");
604 params->process = workload[0];
605#endif
606
607 AtomicSimpleCPU *cpu = new AtomicSimpleCPU(params);
608 return cpu;
609}
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}