atomic.cc (2926:48f2f450cbf6) atomic.cc (3119:6c93a7460ecf)
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;
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;
467 SimObjectParam<MemObject *> mem;
468 SimObjectParam<System *> system;
469
470#if FULL_SYSTEM
471 SimObjectParam<AlphaITB *> itb;
472 SimObjectParam<AlphaDTB *> dtb;
473 Param<int> cpu_id;
474 Param<Tick> profile;

--- 16 unchanged lines hidden (view full) ---

491 INIT_PARAM(max_insts_any_thread,
492 "terminate when any thread reaches this inst count"),
493 INIT_PARAM(max_insts_all_threads,
494 "terminate when all threads have reached this inst count"),
495 INIT_PARAM(max_loads_any_thread,
496 "terminate when any thread reaches this load count"),
497 INIT_PARAM(max_loads_all_threads,
498 "terminate when all threads have reached this load count"),
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"),
499 INIT_PARAM(mem, "memory"),
500 INIT_PARAM(system, "system object"),
501
502#if FULL_SYSTEM
503 INIT_PARAM(itb, "Instruction TLB"),
504 INIT_PARAM(dtb, "Data TLB"),
505 INIT_PARAM(cpu_id, "processor ID"),
506 INIT_PARAM(profile, ""),

--- 15 unchanged lines hidden (view full) ---

522{
523 AtomicSimpleCPU::Params *params = new AtomicSimpleCPU::Params();
524 params->name = getInstanceName();
525 params->numberOfThreads = 1;
526 params->max_insts_any_thread = max_insts_any_thread;
527 params->max_insts_all_threads = max_insts_all_threads;
528 params->max_loads_any_thread = max_loads_any_thread;
529 params->max_loads_all_threads = max_loads_all_threads;
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;
530 params->deferRegistration = defer_registration;
531 params->clock = clock;
532 params->functionTrace = function_trace;
533 params->functionTraceStart = function_trace_start;
534 params->width = width;
535 params->simulate_stalls = simulate_stalls;
536 params->mem = mem;
537 params->system = system;

--- 16 unchanged lines hidden ---
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 ---