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; --- 450 unchanged lines hidden (view full) --- 459// AtomicSimpleCPU Simulation Object 460// 461BEGIN_DECLARE_SIM_OBJECT_PARAMS(AtomicSimpleCPU) 462 463 Param<Counter> max_insts_any_thread; 464 Param<Counter> max_insts_all_threads; 465 Param<Counter> max_loads_any_thread; 466 Param<Counter> max_loads_all_threads; |
467 Param<Tick> progress_interval; |
468 SimObjectParam<MemObject *> mem; 469 SimObjectParam<System *> system; 470 471#if FULL_SYSTEM 472 SimObjectParam<AlphaITB *> itb; 473 SimObjectParam<AlphaDTB *> dtb; 474 Param<int> cpu_id; 475 Param<Tick> profile; --- 16 unchanged lines hidden (view full) --- 492 INIT_PARAM(max_insts_any_thread, 493 "terminate when any thread reaches this inst count"), 494 INIT_PARAM(max_insts_all_threads, 495 "terminate when all threads have reached this inst count"), 496 INIT_PARAM(max_loads_any_thread, 497 "terminate when any thread reaches this load count"), 498 INIT_PARAM(max_loads_all_threads, 499 "terminate when all threads have reached this load count"), |
500 INIT_PARAM(progress_interval, "Progress interval"), |
501 INIT_PARAM(mem, "memory"), 502 INIT_PARAM(system, "system object"), 503 504#if FULL_SYSTEM 505 INIT_PARAM(itb, "Instruction TLB"), 506 INIT_PARAM(dtb, "Data TLB"), 507 INIT_PARAM(cpu_id, "processor ID"), 508 INIT_PARAM(profile, ""), --- 15 unchanged lines hidden (view full) --- 524{ 525 AtomicSimpleCPU::Params *params = new AtomicSimpleCPU::Params(); 526 params->name = getInstanceName(); 527 params->numberOfThreads = 1; 528 params->max_insts_any_thread = max_insts_any_thread; 529 params->max_insts_all_threads = max_insts_all_threads; 530 params->max_loads_any_thread = max_loads_any_thread; 531 params->max_loads_all_threads = max_loads_all_threads; |
532 params->progress_interval = progress_interval; |
533 params->deferRegistration = defer_registration; 534 params->clock = clock; 535 params->functionTrace = function_trace; 536 params->functionTraceStart = function_trace_start; 537 params->width = width; 538 params->simulate_stalls = simulate_stalls; 539 params->mem = mem; 540 params->system = system; --- 16 unchanged lines hidden --- |