isa.hh (6678:34191eea18c1) isa.hh (6806:45879b0e3240)
1/*
2 * Copyright (c) 2009 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;

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

59 perThreadContext,
60 perVirtProcessor
61 };
62
63 std::vector<std::vector<MiscReg> > miscRegFile;
64 std::vector<std::vector<MiscReg> > miscRegFile_WriteMask;
65 std::vector<BankType> bankType;
66
1/*
2 * Copyright (c) 2009 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;

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

59 perThreadContext,
60 perVirtProcessor
61 };
62
63 std::vector<std::vector<MiscReg> > miscRegFile;
64 std::vector<std::vector<MiscReg> > miscRegFile_WriteMask;
65 std::vector<BankType> bankType;
66
67 BaseCPU *cpu;
68
69 public:
70 ISA();
67 public:
68 ISA();
71 ISA(BaseCPU *_cpu);
72
73 void init();
74
75 void clear(unsigned tid_or_vpn = 0);
76
77 void reset(std::string core_name, ThreadID num_threads,
69
70 void init();
71
72 void clear(unsigned tid_or_vpn = 0);
73
74 void reset(std::string core_name, ThreadID num_threads,
78 unsigned num_vpes, BaseCPU *_cpu);
75 unsigned num_vpes, BaseCPU *cpu);
79
80 void expandForMultithreading(ThreadID num_threads, unsigned num_vpes);
81
82 unsigned getVPENum(ThreadID tid);
83
84 //////////////////////////////////////////////////////////
85 //
86 // READ/WRITE CP0 STATE

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

142 /** Schedule This Event */
143 void scheduleEvent(int delay);
144
145 /** Unschedule This Event */
146 void unscheduleEvent();
147 };
148
149 // Schedule a CP0 Update Event
76
77 void expandForMultithreading(ThreadID num_threads, unsigned num_vpes);
78
79 unsigned getVPENum(ThreadID tid);
80
81 //////////////////////////////////////////////////////////
82 //
83 // READ/WRITE CP0 STATE

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

139 /** Schedule This Event */
140 void scheduleEvent(int delay);
141
142 /** Unschedule This Event */
143 void unscheduleEvent();
144 };
145
146 // Schedule a CP0 Update Event
150 void scheduleCP0Update(int delay = 0);
147 void scheduleCP0Update(BaseCPU *cpu, int delay = 0);
151
152 // If any changes have been made, then check the state for changes
153 // and if necessary alert the CPU
148
149 // If any changes have been made, then check the state for changes
150 // and if necessary alert the CPU
154 void updateCPU();
151 void updateCPU(BaseCPU *cpu);
155
156 // Keep a List of CPU Events that need to be deallocated
157 std::queue<CP0Event*> cp0EventRemoveList;
158
159 static std::string miscRegNames[NumMiscRegs];
160
161 public:
162

--- 21 unchanged lines hidden ---
152
153 // Keep a List of CPU Events that need to be deallocated
154 std::queue<CP0Event*> cp0EventRemoveList;
155
156 static std::string miscRegNames[NumMiscRegs];
157
158 public:
159

--- 21 unchanged lines hidden ---