atomic.hh (11608:6319a1125f1c) | atomic.hh (12127:4207df055b0d) |
---|---|
1/* 2 * Copyright (c) 2012-2013,2015 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 46 unchanged lines hidden (view full) --- 55 56 AtomicSimpleCPU(AtomicSimpleCPUParams *params); 57 virtual ~AtomicSimpleCPU(); 58 59 void init() override; 60 61 private: 62 | 1/* 2 * Copyright (c) 2012-2013,2015 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 46 unchanged lines hidden (view full) --- 55 56 AtomicSimpleCPU(AtomicSimpleCPUParams *params); 57 virtual ~AtomicSimpleCPU(); 58 59 void init() override; 60 61 private: 62 |
63 struct TickEvent : public Event 64 { 65 AtomicSimpleCPU *cpu; | 63 EventFunctionWrapper tickEvent; |
66 | 64 |
67 TickEvent(AtomicSimpleCPU *c); 68 void process(); 69 const char *description() const; 70 }; 71 72 TickEvent tickEvent; 73 | |
74 const int width; 75 bool locked; 76 const bool simulate_data_stalls; 77 const bool simulate_inst_stalls; 78 79 // main simulation loop (one cycle) 80 void tick(); 81 --- 142 unchanged lines hidden --- | 65 const int width; 66 bool locked; 67 const bool simulate_data_stalls; 68 const bool simulate_inst_stalls; 69 70 // main simulation loop (one cycle) 71 void tick(); 72 --- 142 unchanged lines hidden --- |