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; --- 575 unchanged lines hidden (view full) --- 584// TimingSimpleCPU Simulation Object 585// 586BEGIN_DECLARE_SIM_OBJECT_PARAMS(TimingSimpleCPU) 587 588 Param<Counter> max_insts_any_thread; 589 Param<Counter> max_insts_all_threads; 590 Param<Counter> max_loads_any_thread; 591 Param<Counter> max_loads_all_threads; |
592 Param<Tick> progress_interval; |
593 SimObjectParam<MemObject *> mem; 594 SimObjectParam<System *> system; 595 596#if FULL_SYSTEM 597 SimObjectParam<AlphaITB *> itb; 598 SimObjectParam<AlphaDTB *> dtb; 599 Param<int> cpu_id; 600 Param<Tick> profile; --- 16 unchanged lines hidden (view full) --- 617 INIT_PARAM(max_insts_any_thread, 618 "terminate when any thread reaches this inst count"), 619 INIT_PARAM(max_insts_all_threads, 620 "terminate when all threads have reached this inst count"), 621 INIT_PARAM(max_loads_any_thread, 622 "terminate when any thread reaches this load count"), 623 INIT_PARAM(max_loads_all_threads, 624 "terminate when all threads have reached this load count"), |
625 INIT_PARAM(progress_interval, "Progress interval"), |
626 INIT_PARAM(mem, "memory"), 627 INIT_PARAM(system, "system object"), 628 629#if FULL_SYSTEM 630 INIT_PARAM(itb, "Instruction TLB"), 631 INIT_PARAM(dtb, "Data TLB"), 632 INIT_PARAM(cpu_id, "processor ID"), 633 INIT_PARAM(profile, ""), --- 15 unchanged lines hidden (view full) --- 649{ 650 TimingSimpleCPU::Params *params = new TimingSimpleCPU::Params(); 651 params->name = getInstanceName(); 652 params->numberOfThreads = 1; 653 params->max_insts_any_thread = max_insts_any_thread; 654 params->max_insts_all_threads = max_insts_all_threads; 655 params->max_loads_any_thread = max_loads_any_thread; 656 params->max_loads_all_threads = max_loads_all_threads; |
657 params->progress_interval = progress_interval; |
658 params->deferRegistration = defer_registration; 659 params->clock = clock; 660 params->functionTrace = function_trace; 661 params->functionTraceStart = function_trace_start; 662 params->mem = mem; 663 params->system = system; 664 665#if FULL_SYSTEM --- 14 unchanged lines hidden --- |