atomic.hh (5496:6899b894166f) atomic.hh (5529:9ae69b9cd7fd)
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;

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

27 *
28 * Authors: Steve Reinhardt
29 */
30
31#ifndef __CPU_SIMPLE_ATOMIC_HH__
32#define __CPU_SIMPLE_ATOMIC_HH__
33
34#include "cpu/simple/base.hh"
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;

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

27 *
28 * Authors: Steve Reinhardt
29 */
30
31#ifndef __CPU_SIMPLE_ATOMIC_HH__
32#define __CPU_SIMPLE_ATOMIC_HH__
33
34#include "cpu/simple/base.hh"
35#include "params/AtomicSimpleCPU.hh"
35
36class AtomicSimpleCPU : public BaseSimpleCPU
37{
38 public:
39
36
37class AtomicSimpleCPU : public BaseSimpleCPU
38{
39 public:
40
40 struct Params : public BaseSimpleCPU::Params {
41 int width;
42 bool simulate_data_stalls;
43 bool simulate_inst_stalls;
44 };
45
46 AtomicSimpleCPU(Params *params);
41 AtomicSimpleCPU(AtomicSimpleCPUParams *params);
47 virtual ~AtomicSimpleCPU();
48
49 virtual void init();
50
51 private:
52
53 struct TickEvent : public Event
54 {

--- 102 unchanged lines hidden ---
42 virtual ~AtomicSimpleCPU();
43
44 virtual void init();
45
46 private:
47
48 struct TickEvent : public Event
49 {

--- 102 unchanged lines hidden ---