gem5  v21.1.0.2
gic.cc
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Google, Inc.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are
6  * met: redistributions of source code must retain the above copyright
7  * notice, this list of conditions and the following disclaimer;
8  * redistributions in binary form must reproduce the above copyright
9  * notice, this list of conditions and the following disclaimer in the
10  * documentation and/or other materials provided with the distribution;
11  * neither the name of the copyright holders nor the names of its
12  * contributors may be used to endorse or promote products derived from
13  * this software without specific prior written permission.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  */
27 
29 
30 #include "base/trace.hh"
31 #include "params/FastModelGIC.hh"
32 #include "params/SCFastModelGIC.hh"
33 
34 namespace gem5
35 {
36 
37 GEM5_DEPRECATED_NAMESPACE(FastModel, fastmodel);
38 namespace fastmodel
39 {
40 
41 int
43 {
44  int count = 0;
45  for (auto &init: inits)
46  if (!init.get_port_base().size())
47  count++;
48  return count;
49 }
50 
52  sc_core::sc_module_name _name, Initiators &inits) :
53  sc_core::sc_module(_name),
54  targets("targets", countUnbound(inits))
55 {
56  // For every unbound initiator socket, connected it to one
57  // terminator target socket.
58  int i = 0;
59  for (auto &init: inits) {
60  if (!init.get_port_base().size()) {
61  auto &term = targets.at(i++);
62  term.bind(*this);
63  term.bind(init);
64  }
65  }
66 }
67 
68 void
69 SCGIC::Terminator::sendTowardsCPU(uint8_t len, const uint8_t *data)
70 {
71  panic("Call to terminated interface!");
72 }
73 
74 SCGIC::SCGIC(const SCFastModelGICParams &params,
76  : scx_evs_GIC(_name), _params(params)
77 {
78  signalInterrupt.bind(signal_interrupt);
79 
80  set_parameter("gic.enabled", params.enabled);
81  set_parameter("gic.has-gicv3", params.has_gicv3);
82  set_parameter("gic.has-gicv4.1", params.has_gicv4_1);
83  set_parameter("gic.vPEID-bits", params.vPEID_bits);
84  set_parameter("gic.print-memory-map", params.print_mmap);
85  set_parameter("gic.monolithic", params.monolithic);
86  set_parameter("gic.direct-lpi-support", params.direct_lpi_support);
87  set_parameter("gic.CPU-affinities", params.cpu_affinities);
88  set_parameter("gic.non-ARE-core-count", params.non_ARE_core_count);
89  set_parameter("gic.reg-base", params.reg_base);
90  set_parameter("gic.reg-base-per-redistributor",
91  params.reg_base_per_redistributor);
92  set_parameter("gic.GICD-alias", params.gicd_alias);
93  set_parameter("gic.has-two-security-states",
94  params.has_two_security_states);
95  set_parameter("gic.DS-fixed-to-zero", params.DS_fixed_to_zero);
96  set_parameter("gic.IIDR", params.IIDR);
97  set_parameter("gic.gicv2-only", params.gicv2_only);
98  set_parameter("gic.STATUSR-implemented", params.STATUSR_implemented);
99  set_parameter("gic.priority-bits",
100  params.priority_bits_implemented);
101  set_parameter("gic.GICD_ITARGETSR-RAZWI", params.itargets_razwi);
102  set_parameter("gic.ICFGR-SGI-mask", params.icfgr_sgi_mask);
103  set_parameter("gic.ICFGR-PPI-mask", params.icfgr_ppi_mask);
104  set_parameter("gic.ICFGR-SPI-mask", params.icfgr_spi_mask);
105  set_parameter("gic.ICFGR-SGI-reset", params.icfgr_sgi_reset);
106  set_parameter("gic.ICFGR-PPI-reset", params.icfgr_ppi_reset);
107  set_parameter("gic.ICFGR-SPI-reset", params.icfgr_spi_reset);
108  set_parameter("gic.ICFGR-rsvd-bit", params.icfgr_ppi_rsvd_bit);
109  set_parameter("gic.IGROUP-SGI-mask", params.igroup_sgi_mask);
110  set_parameter("gic.IGROUP-PPI-mask", params.igroup_ppi_mask);
111  set_parameter("gic.IGROUP-SGI-reset", params.igroup_sgi_reset);
112  set_parameter("gic.IGROUP-PPI-reset", params.igroup_ppi_reset);
113  set_parameter("gic.PPI-implemented-mask", params.ppi_implemented_mask);
114  set_parameter("gic.SPI-count", params.spi_count);
115  set_parameter("gic.lockable-SPI-count", params.lockable_spi_count);
116  set_parameter("gic.IRI-ID-bits", params.iri_id_bits);
117  set_parameter("gic.delay-redistributor-accesses",
118  params.delay_redistributor_accesses);
119  set_parameter("gic.GICD_PIDR", params.gicd_pidr);
120  set_parameter("gic.GICR_PIDR", params.gicr_pidr);
121  set_parameter("gic.ITS-count", params.its_count);
122  set_parameter("gic.ITS0-base", params.its0_base);
123  set_parameter("gic.ITS1-base", params.its1_base);
124  set_parameter("gic.ITS2-base", params.its2_base);
125  set_parameter("gic.ITS3-base", params.its3_base);
126  set_parameter("gic.GITS_PIDR", params.gits_pidr);
127  set_parameter("gic.GITS_BASER0-type", params.gits_baser0_type);
128  set_parameter("gic.GITS_BASER1-type", params.gits_baser1_type);
129  set_parameter("gic.GITS_BASER2-type", params.gits_baser2_type);
130  set_parameter("gic.GITS_BASER3-type", params.gits_baser3_type);
131  set_parameter("gic.GITS_BASER4-type", params.gits_baser4_type);
132  set_parameter("gic.GITS_BASER5-type", params.gits_baser5_type);
133  set_parameter("gic.GITS_BASER6-type", params.gits_baser6_type);
134  set_parameter("gic.GITS_BASER7-type", params.gits_baser7_type);
135  set_parameter("gic.GITS_BASER0-entry-bytes",
136  params.gits_baser0_entry_bytes);
137  set_parameter("gic.GITS_BASER1-entry-bytes",
138  params.gits_baser1_entry_bytes);
139  set_parameter("gic.GITS_BASER2-entry-bytes",
140  params.gits_baser2_entry_bytes);
141  set_parameter("gic.GITS_BASER3-entry-bytes",
142  params.gits_baser3_entry_bytes);
143  set_parameter("gic.GITS_BASER4-entry-bytes",
144  params.gits_baser4_entry_bytes);
145  set_parameter("gic.GITS_BASER5-entry-bytes",
146  params.gits_baser5_entry_bytes);
147  set_parameter("gic.GITS_BASER6-entry-bytes",
148  params.gits_baser6_entry_bytes);
149  set_parameter("gic.GITS_BASER7-entry-bytes",
150  params.gits_baser7_entry_bytes);
151  set_parameter("gic.GITS_BASER0-indirect-RAZ",
152  params.gits_baser0_indirect_raz);
153  set_parameter("gic.GITS_BASER1-indirect-RAZ",
154  params.gits_baser1_indirect_raz);
155  set_parameter("gic.GITS_BASER2-indirect-RAZ",
156  params.gits_baser2_indirect_raz);
157  set_parameter("gic.GITS_BASER3-indirect-RAZ",
158  params.gits_baser3_indirect_raz);
159  set_parameter("gic.GITS_BASER4-indirect-RAZ",
160  params.gits_baser4_indirect_raz);
161  set_parameter("gic.GITS_BASER5-indirect-RAZ",
162  params.gits_baser5_indirect_raz);
163  set_parameter("gic.GITS_BASER6-indirect-RAZ",
164  params.gits_baser6_indirect_raz);
165  set_parameter("gic.GITS_BASER7-indirect-RAZ",
166  params.gits_baser7_indirect_raz);
167  set_parameter("gic.ITS-BASER-force-page-alignement",
168  params.its_baser_force_page_alignement);
169  set_parameter("gic.processor-numbers", params.processor_numbers);
170  set_parameter("gic.supports-shareability", params.supports_shareability);
171  set_parameter("gic.A3-affinity-supported", params.a3_affinity_supported);
172  set_parameter("gic.sgi-range-selector-support", params.SGI_RSS_support);
173  set_parameter("gic.GICR_PROPBASER-read-only",
174  params.gicr_propbaser_read_only);
175  set_parameter("gic.GICR_PROPBASER-reset-value",
176  params.gicr_propbaser_reset);
177  set_parameter("gic.ITS-device-bits", params.its_device_bits);
178  set_parameter("gic.ITS-entry-size", params.its_entry_size);
179  set_parameter("gic.ITS-ID-bits", params.its_id_bits);
180  set_parameter("gic.ITS-collection-ID-bits", params.its_collection_id_bits);
181  set_parameter("gic.ITS-cumulative-collection-tables",
182  params.its_cumulative_collection_tables);
183  set_parameter("gic.delay-ITS-accesses", params.delay_ITS_accesses);
184  set_parameter("gic.local-SEIs", params.local_SEIs);
185  set_parameter("gic.local-VSEIs", params.local_VSEIs);
186  set_parameter("gic.ITS-use-physical-target-addresses",
187  params.ITS_use_physical_target_addresses);
188  set_parameter("gic.ITS-hardware-collection-count",
189  params.ITS_hardware_collection_count);
190  set_parameter("gic.ITS-MOVALL-update-collections",
191  params.ITS_MOVALL_update_collections);
192  set_parameter("gic.ITS-TRANSLATE64R", params.ITS_TRANSLATE64R);
193  set_parameter("gic.enable_protocol_checking",
194  params.enable_protocol_checking);
195  set_parameter("gic.fixed-routed-spis", params.fixed_routed_spis);
196  set_parameter("gic.irouter-default-mask", params.irouter_default_mask);
197  if (params.irouter_default_reset != "") {
198  set_parameter("gic.irouter-default-reset",
199  params.irouter_default_reset);
200  }
201  if (params.irouter_reset_values != "")
202  set_parameter("gic.irouter-reset-values", params.irouter_reset_values);
203  set_parameter("gic.irouter-mask-values", params.irouter_mask_values);
204  set_parameter("gic.ITS-threaded-command-queue",
205  params.ITS_threaded_command_queue);
206  set_parameter("gic.ITS-legacy-iidr-typer-offset",
207  params.ITS_legacy_iidr_typer_offset);
208  set_parameter("gic.redistributor-threaded-sync",
209  params.redistributor_threaded_command_queue);
210  set_parameter("gic.ignore-generate-sgi-when-no-are",
211  params.ignore_generate_sgi_when_no_are);
212  set_parameter("gic.trace-speculative-lpi-property-update",
213  params.trace_speculative_lpi_property_updates);
214  set_parameter("gic.virtual-lpi-support", params.virtual_lpi_support);
215  set_parameter("gic.virtual-priority-bits", params.virtual_priority_bits);
216  set_parameter("gic.LPI-cache-type", params.LPI_cache_type);
217  set_parameter("gic.LPI-cache-check-data", params.LPI_cache_check_data);
218  set_parameter("gic.DPG-bits-implemented", params.DPG_bits_implemented);
219  set_parameter("gic.DPG-ARE-only", params.DPG_ARE_only);
220  set_parameter("gic.ARE-fixed-to-one", params.ARE_fixed_to_one);
221  set_parameter("gic.legacy-sgi-enable-rao", params.legacy_sgi_enable_rao);
222  set_parameter("gic.PA_SIZE", params.pa_size);
223  set_parameter("gic.MSI_IIDR", params.MSI_IIDR);
224  set_parameter("gic.MSI_NS-frame0-base", params.MSI_NS_frame0_base);
225  set_parameter("gic.MSI_NS-frame0-max-SPI", params.MSI_NS_frame0_max_SPI);
226  set_parameter("gic.MSI_NS-frame0-min-SPI", params.MSI_NS_frame0_min_SPI);
227  set_parameter("gic.MSI_NS-frame1-base", params.MSI_NS_frame1_base);
228  set_parameter("gic.MSI_NS-frame1-max-SPI", params.MSI_NS_frame1_max_SPI);
229  set_parameter("gic.MSI_NS-frame1-min-SPI", params.MSI_NS_frame1_min_SPI);
230  set_parameter("gic.MSI_NS-frame2-base", params.MSI_NS_frame2_base);
231  set_parameter("gic.MSI_NS-frame2-max-SPI", params.MSI_NS_frame2_max_SPI);
232  set_parameter("gic.MSI_NS-frame2-min-SPI", params.MSI_NS_frame2_min_SPI);
233  set_parameter("gic.MSI_NS-frame3-base", params.MSI_NS_frame3_base);
234  set_parameter("gic.MSI_NS-frame3-max-SPI", params.MSI_NS_frame3_max_SPI);
235  set_parameter("gic.MSI_NS-frame3-min-SPI", params.MSI_NS_frame3_min_SPI);
236  set_parameter("gic.MSI_NS-frame4-base", params.MSI_NS_frame4_base);
237  set_parameter("gic.MSI_NS-frame4-max-SPI", params.MSI_NS_frame4_max_SPI);
238  set_parameter("gic.MSI_NS-frame4-min-SPI", params.MSI_NS_frame4_min_SPI);
239  set_parameter("gic.MSI_NS-frame5-base", params.MSI_NS_frame5_base);
240  set_parameter("gic.MSI_NS-frame5-max-SPI", params.MSI_NS_frame5_max_SPI);
241  set_parameter("gic.MSI_NS-frame5-min-SPI", params.MSI_NS_frame5_min_SPI);
242  set_parameter("gic.MSI_NS-frame6-base", params.MSI_NS_frame6_base);
243  set_parameter("gic.MSI_NS-frame6-max-SPI", params.MSI_NS_frame6_max_SPI);
244  set_parameter("gic.MSI_NS-frame6-min-SPI", params.MSI_NS_frame6_min_SPI);
245  set_parameter("gic.MSI_NS-frame7-base", params.MSI_NS_frame7_base);
246  set_parameter("gic.MSI_NS-frame7-max-SPI", params.MSI_NS_frame7_max_SPI);
247  set_parameter("gic.MSI_NS-frame7-min-SPI", params.MSI_NS_frame7_min_SPI);
248  set_parameter("gic.MSI_PIDR", params.MSI_PIDR);
249  set_parameter("gic.MSI_S-frame0-base", params.MSI_S_frame0_base);
250  set_parameter("gic.MSI_S-frame0-max-SPI", params.MSI_S_frame0_max_SPI);
251  set_parameter("gic.MSI_S-frame0-min-SPI", params.MSI_S_frame0_min_SPI);
252  set_parameter("gic.MSI_S-frame1-base", params.MSI_S_frame1_base);
253  set_parameter("gic.MSI_S-frame1-max-SPI", params.MSI_S_frame1_max_SPI);
254  set_parameter("gic.MSI_S-frame1-min-SPI", params.MSI_S_frame1_min_SPI);
255  set_parameter("gic.MSI_S-frame2-base", params.MSI_S_frame2_base);
256  set_parameter("gic.MSI_S-frame2-max-SPI", params.MSI_S_frame2_max_SPI);
257  set_parameter("gic.MSI_S-frame2-min-SPI", params.MSI_S_frame2_min_SPI);
258  set_parameter("gic.MSI_S-frame3-base", params.MSI_S_frame3_base);
259  set_parameter("gic.MSI_S-frame3-max-SPI", params.MSI_S_frame3_max_SPI);
260  set_parameter("gic.MSI_S-frame3-min-SPI", params.MSI_S_frame3_min_SPI);
261  set_parameter("gic.MSI_S-frame4-base", params.MSI_S_frame4_base);
262  set_parameter("gic.MSI_S-frame4-max-SPI", params.MSI_S_frame4_max_SPI);
263  set_parameter("gic.MSI_S-frame4-min-SPI", params.MSI_S_frame4_min_SPI);
264  set_parameter("gic.MSI_S-frame5-base", params.MSI_S_frame5_base);
265  set_parameter("gic.MSI_S-frame5-max-SPI", params.MSI_S_frame5_max_SPI);
266  set_parameter("gic.MSI_S-frame5-min-SPI", params.MSI_S_frame5_min_SPI);
267  set_parameter("gic.MSI_S-frame6-base", params.MSI_S_frame6_base);
268  set_parameter("gic.MSI_S-frame6-max-SPI", params.MSI_S_frame6_max_SPI);
269  set_parameter("gic.MSI_S-frame6-min-SPI", params.MSI_S_frame6_min_SPI);
270  set_parameter("gic.MSI_S-frame7-base", params.MSI_S_frame7_base);
271  set_parameter("gic.MSI_S-frame7-max-SPI", params.MSI_S_frame7_max_SPI);
272  set_parameter("gic.MSI_S-frame7-min-SPI", params.MSI_S_frame7_min_SPI);
273  set_parameter("gic.outer-cacheability-support",
274  params.outer_cacheability_support);
275  set_parameter("gic.wakeup-on-reset", params.wakeup_on_reset);
276  set_parameter("gic.SPI-message-based-support", params.SPI_MBIS);
277  set_parameter("gic.SPI-unimplemented", params.SPI_unimplemented);
278  set_parameter("gic.IROUTER-IRM-RAZ-WI", params.irm_razwi);
279  set_parameter("gic.common-lpi-configuration",
280  params.common_LPI_configuration);
281  set_parameter("gic.single-set-support", params.single_set_support);
282  set_parameter("gic.has_mpam", params.has_mpam);
283  set_parameter("gic.mpam_partid_max", params.mpam_max_partid);
284  set_parameter("gic.mpam_pmg_max", params.mpam_max_pmg);
285  set_parameter("gic.output_attributes", params.output_attributes);
286  set_parameter("gic.has_VPENDBASER-dirty-flag-on-load",
287  params.has_DirtyVLPIOnLoad);
288  set_parameter("gic.allow-LPIEN-clear", params.allow_LPIEN_clear);
289  set_parameter("gic.GICD-legacy-registers-as-reserved",
290  params.GICD_legacy_reg_reserved);
291  set_parameter("gic.extended-spi-count", params.extended_spi_count);
292  set_parameter("gic.extended-ppi-count", params.extended_ppi_count);
293  set_parameter("gic.consolidators", params.consolidators);
294 }
295 
296 void
298 {
299  scx_evs_GIC::before_end_of_elaboration();
300  terminator.reset(new Terminator("terminator", redistributor));
301 }
302 
303 GIC::GIC(const FastModelGICParams &params) :
304  BaseGic(params),
305  ambaM(params.sc_gic->amba_m, params.name + ".amba_m", -1),
306  ambaS(params.sc_gic->amba_s, params.name + ".amba_s", -1),
307  redistributors(params.port_redistributor_connection_count),
308  scGIC(params.sc_gic)
309 {}
310 
311 Port &
312 GIC::getPort(const std::string &if_name, PortID idx)
313 {
314  if (if_name == "amba_m") {
315  return ambaM;
316  } else if (if_name == "amba_s") {
317  return ambaS;
318  } else if (if_name == "redistributor") {
319  auto &ptr = redistributors.at(idx);
320  if (!ptr) {
321  ptr.reset(new TlmGicInitiator(scGIC->redistributor[idx],
322  csprintf("%s.redistributor[%d]",
323  name(), idx), idx));
324  }
325  return *ptr;
326  } else {
327  return BaseGic::getPort(if_name, idx);
328  }
329 }
330 
331 void
332 GIC::sendInt(uint32_t num)
333 {
334  scGIC->signalInterrupt->spi(num - 32, true);
335 }
336 
337 void
338 GIC::clearInt(uint32_t num)
339 {
340  scGIC->signalInterrupt->spi(num - 32, false);
341 }
342 
343 void
344 GIC::sendPPInt(uint32_t num, uint32_t cpu)
345 {
346  scGIC->signalInterrupt->ppi(cpu, num, true);
347 }
348 
349 void
350 GIC::clearPPInt(uint32_t num, uint32_t cpu)
351 {
352  scGIC->signalInterrupt->ppi(cpu, num, false);
353 }
354 
355 bool
357 {
358  if (scGIC->params().gicv2_only)
359  return version == GicVersion::GIC_V2;
360  return (version == GicVersion::GIC_V3) ||
361  (version == GicVersion::GIC_V4 && scGIC->params().has_gicv4_1);
362 }
363 
364 } // namespace fastmodel
365 } // namespace gem5
gem5::PortID
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
Definition: types.hh:252
gem5::fastmodel::GIC::ambaS
AmbaTarget ambaS
Definition: gic.hh:119
gem5::fastmodel::SCGIC::SCGIC
SCGIC(const SCFastModelGICParams &p)
Definition: gic.hh:90
gem5::ArmISA::len
Bitfield< 18, 16 > len
Definition: misc_types.hh:444
data
const char data[]
Definition: circlebuf.test.cc:48
gem5::fastmodel::GIC::sendInt
void sendInt(uint32_t num) override
Post an interrupt from a device that is connected to the GIC.
Definition: gic.cc:332
gem5::fastmodel::SCGIC::before_end_of_elaboration
void before_end_of_elaboration() override
Definition: gic.cc:297
sc_core
Definition: messages.cc:31
gem5::BaseGic::GicVersion::GIC_V3
@ GIC_V3
gem5::fastmodel::SCGIC::signalInterrupt
SignalInterruptInitiatorSocket signalInterrupt
Definition: gic.hh:93
gem5::fastmodel::GIC::scGIC
SCGIC * scGIC
Definition: gic.hh:122
gem5::fastmodel::GIC::getPort
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
Definition: gic.cc:312
gem5::csprintf
std::string csprintf(const char *format, const Args &...args)
Definition: cprintf.hh:161
gem5::BaseGic::GicVersion::GIC_V4
@ GIC_V4
sc_core::sc_vector
Definition: sc_vector.hh:157
gem5::ArmISA::i
Bitfield< 7 > i
Definition: misc_types.hh:66
gic.hh
gem5::fastmodel::GIC::sendPPInt
void sendPPInt(uint32_t num, uint32_t cpu) override
Interface call for private peripheral interrupts.
Definition: gic.cc:344
gem5::fastmodel::GIC::clearInt
void clearInt(uint32_t num) override
Clear an interrupt from a device that is connected to the GIC.
Definition: gic.cc:338
gem5::fastmodel::GIC::supportsVersion
bool supportsVersion(GicVersion version) override
Check if version supported.
Definition: gic.cc:356
gem5::BaseGic
Definition: base_gic.hh:72
gem5::Named::name
virtual std::string name() const
Definition: named.hh:47
gem5::X86ISA::count
count
Definition: misc.hh:709
sc_core::sc_module_name
Definition: sc_module_name.hh:41
gem5::fastmodel::GIC::redistributors
std::vector< std::unique_ptr< TlmGicInitiator > > redistributors
Definition: gic.hh:120
gem5::fastmodel::SCGIC::Terminator::targets
Targets targets
Definition: gic.hh:75
gem5::GEM5_DEPRECATED_NAMESPACE
GEM5_DEPRECATED_NAMESPACE(GuestABI, guest_abi)
name
const std::string & name()
Definition: trace.cc:49
gem5::fastmodel::GIC::GIC
GIC(const FastModelGICParams &params)
Definition: gic.cc:303
gem5::BaseGic::GicVersion
GicVersion
Definition: base_gic.hh:76
gem5::fastmodel::SCGIC::Terminator::countUnbound
static int countUnbound(const Initiators &inits)
Definition: gic.cc:42
tlm::tlm_base_initiator_socket::bind
virtual void bind(base_target_socket_type &s)
Definition: initiator_socket.hh:121
gem5::Port
Ports are used to interface objects to each other.
Definition: port.hh:61
gem5::fastmodel::SCGIC::Terminator::Terminator
Terminator(sc_core::sc_module_name _name, Initiators &inits)
Definition: gic.cc:51
gem5::fastmodel::GIC::TlmGicInitiator
sc_gem5::TlmInitiatorBaseWrapper< 64, svp_gicv3_comms::gicv3_comms_fw_if, svp_gicv3_comms::gicv3_comms_bw_if, 1, sc_core::SC_ONE_OR_MORE_BOUND > TlmGicInitiator
Definition: gic.hh:116
sc_core::sc_vector::at
T & at(size_type index)
Definition: sc_vector.hh:500
gem5::statistics::init
const FlagsType init
This Stat is Initialized.
Definition: info.hh:56
trace.hh
gem5::fastmodel::SCGIC::Terminator
Definition: gic.hh:66
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition: decoder.cc:40
gem5::fastmodel::GIC::ambaM
AmbaInitiator ambaM
Definition: gic.hh:118
gem5::BaseGic::GicVersion::GIC_V2
@ GIC_V2
gem5::fastmodel::SCGIC::Terminator::sendTowardsCPU
void sendTowardsCPU(uint8_t len, const uint8_t *data) override
Definition: gic.cc:69
gem5::fastmodel::SCGIC::terminator
std::unique_ptr< Terminator > terminator
Definition: gic.hh:86
gem5::fastmodel::GIC::clearPPInt
void clearPPInt(uint32_t num, uint32_t cpu) override
Definition: gic.cc:350
panic
#define panic(...)
This implements a cprintf based panic() function.
Definition: logging.hh:177
gem5::fastmodel::SCGIC::_params
const SCFastModelGICParams & _params
Definition: gic.hh:87
gem5::PioDevice::getPort
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
Definition: io_device.cc:67

Generated on Tue Sep 21 2021 12:24:24 for gem5 by doxygen 1.8.17