gem5  v22.1.0.0
malta.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2004-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;
9  * redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution;
12  * neither the name of the copyright holders nor the names of its
13  * contributors may be used to endorse or promote products derived from
14  * this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
35 #ifndef __DEV_MALTA_HH__
36 #define __DEV_MALTA_HH__
37 
38 #include "dev/platform.hh"
39 #include "params/Malta.hh"
40 
41 namespace gem5
42 {
43 
44 class MaltaCChip;
45 class MaltaIO;
46 
54 class Malta : public Platform
55 {
56  public:
58  static const int Max_CPUs = 64;
59 
62 
68 
71 
72  public:
73  typedef MaltaParams Params;
74  Malta(const Params &p);
75 
79  void postConsoleInt() override;
80 
84  void clearConsoleInt() override;
85 
89  void postPciInt(int line) override;
90 
94  void clearPciInt(int line) override;
95 
96  void serialize(CheckpointOut &cp) const override;
97  void unserialize(CheckpointIn &cp) override;
98 };
99 
100 } // namespace gem5
101 
102 #endif // __DEV_MALTA_HH__
Malta CChip CSR Emulation.
Definition: malta_cchip.hh:48
Malta I/O device is a catch all for all the south bridge stuff we care to implement.
Definition: malta_io.hh:52
Top level class for Malta Chipset emulation.
Definition: malta.hh:55
int ipi_pending[Malta::Max_CPUs]
Definition: malta.hh:70
void postConsoleInt() override
Cause the cpu to post a serial interrupt to the CPU.
Definition: malta.cc:51
void serialize(CheckpointOut &cp) const override
Serialize an object.
Definition: malta.cc:77
int intr_sum_type[Malta::Max_CPUs]
Definition: malta.hh:69
void clearPciInt(int line) override
Clear a posted PCI->CPU interrupt.
Definition: malta.cc:71
MaltaIO * io
Pointer to the MaltaIO device which has the RTC.
Definition: malta.hh:61
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Definition: malta.cc:83
MaltaParams Params
Definition: malta.hh:73
void postPciInt(int line) override
Cause the chipset to post a cpi interrupt to the CPU.
Definition: malta.cc:65
static const int Max_CPUs
Max number of CPUs in a Malta.
Definition: malta.hh:58
Malta(const Params &p)
Definition: malta.cc:43
void clearConsoleInt() override
Clear a posted CPU interrupt (id=55)
Definition: malta.cc:58
MaltaCChip * cchip
Pointer to the Malta CChip.
Definition: malta.hh:67
Bitfield< 54 > p
Definition: pagetable.hh:70
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
std::ostream CheckpointOut
Definition: serialize.hh:66
Generic interface for platforms.

Generated on Wed Dec 21 2022 10:22:34 for gem5 by doxygen 1.9.1