History log of /gem5/src/dev/x86/pc.cc
Revision Date Author Comments
# 12239:ae1686aaebc5 20-Jul-2017 Andreas Sandberg <andreas.sandberg@arm.com>

dev: Move generic serial devices to src/dev/serial

Change-Id: I104227fc460f8b561e7375b329a541c1fce881b2
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/4291
Reviewed-by: Gabe Black <gabeblack@google.com>


# 11793:ef606668d247 09-Nov-2016 Brandon Potter <brandon.potter@amd.com>

style: [patch 1/22] use /r/3648/ to reorganize includes


# 11244:a2af58a06c4e 04-Dec-2015 Andreas Sandberg <andreas.sandberg@arm.com>

dev: Rewrite PCI host functionality

The gem5's current PCI host functionality is very ad hoc. The current
implementations require PCI devices to be hooked up to the
configuration space via a separate configuration port. Devices query
the platform to get their config-space address range. Un-mapped parts
of the config space are intercepted using the XBar's default port
mechanism and a magic catch-all device (PciConfigAll).

This changeset redesigns the PCI host functionality to improve code
reuse and make config-space and interrupt mapping more
transparent. Existing platform code has been updated to use the new
PCI host and configured to stay backwards compatible (i.e., no
guest-side visible changes). The current implementation does not
expose any new functionality, but it can easily be extended with
features such as automatic interrupt mapping.

PCI devices now register themselves with a PCI host controller. The
host controller interface is defined in the abstract base class
PciHost. Registration is done by PciHost::registerDevice() which takes
the device, its bus position (bus/dev/func tuple), and its interrupt
pin (INTA-INTC) as a parameter. The registration interface returns a
PciHost::DeviceInterface that the PCI device can use to query memory
mappings and signal interrupts.

The host device manages the entire PCI configuration space. Accesses
to devices decoded into the devices bus position and then forwarded to
the correct device.

Basic PCI host functionality is implemented in the GenericPciHost base
class. Most platforms can use this class as a basic PCI controller. It
provides the following functionality:

* Configurable configuration space decoding. The number of bits
dedicated to a device is a prameter, making it possible to support
both CAM, ECAM, and legacy mappings.

* Basic interrupt mapping using the interruptLine value from a
device's configuration space. This behavior is the same as in the
old implementation. More advanced controllers can override the
interrupt mapping method to dynamically assign host interrupts to
PCI devices.

* Simple (base + addr) remapping from the PCI bus's address space to
physical addresses for PIO, memory, and DMA.


# 8741:491297d019f3 30-Sep-2011 Gabe Black <gblack@eecs.umich.edu>

SE/FS: Remove System::platform and Platform::intrFrequency.

In order for a system object to work in SE mode and FS mode, it has to either
always require a platform object even in SE mode, or get rid of the
requirement all together. Making SE mode carry around unnecessary/unused bits
of FS seems less than ideal, so I decided to go with the second option. The
platform pointer in the System class was used for exactly one purpose, a path
for the Alpha Linux system object to get to the real time clock and read its
frequency so that it could short cut the loops_per_jiffy calculation. There
was also a copy and pasted implementation in MIPS, but since it was only there
because it was there in Alpha I still count that as one use.

This change reverses the mechanism that communicates the RTC frequency so that
the Tsunami platform object pushes it up to the AlphaSystem object. This is
slightly less specific than it could be because really only the
AlphaLinuxSystem uses it. Because the intrFrequency function on the Platform
class was no longer necessary (and unimplemented on anything but Alpha) it was
eliminated.

After this change, a platform will need to have a system, but a system won't
have to have a platform.


# 8739:925f15f96322 30-Sep-2011 Gabe Black <gblack@eecs.umich.edu>

SE/FS: Build the devices in SE mode.


# 8229:78bf55f23338 15-Apr-2011 Nathan Binkert <nate@binkert.org>

includes: sort all includes


# 6658:f4de76601762 23-Sep-2009 Nathan Binkert <nate@binkert.org>

arch: nuke arch/isa_specific.hh and move stuff to generated config/the_isa.hh


# 6073:d552a9544974 19-Apr-2009 Gabe Black <gblack@eecs.umich.edu>

X86: Mask the PIC at startup to avoid a glitch which causes an NMI.


# 5844:144524795dfe 01-Feb-2009 Gabe Black <gblack@eecs.umich.edu>

X86: Implement pciToDma.


# 5843:a2c317cefcf8 01-Feb-2009 Gabe Black <gblack@eecs.umich.edu>

X86: Configure the first PCI interrupt.


# 5842:1349786dd9a7 01-Feb-2009 Gabe Black <gblack@eecs.umich.edu>

X86: Hook up the IDE controller interrupt line.


# 5834:b9e30a60dee4 01-Feb-2009 Gabe Black <gblack@eecs.umich.edu>

Devices: Add support for legacy fixed IO locations in BARs.


# 5830:1758d56964c9 01-Feb-2009 Gabe Black <gblack@eecs.umich.edu>

X86: Set up the console interrupt and add some DPRINTFs.


# 5829:2fdbb27f8c70 01-Feb-2009 Gabe Black <gblack@eecs.umich.edu>

X86: Configure the IO APIC more.


# 5654:340254de2031 12-Oct-2008 Gabe Black <gblack@eecs.umich.edu>

X86: Make the local APIC handle interrupt messages from the IO APIC.


# 5643:2b1611137af4 11-Oct-2008 Gabe Black <gblack@eecs.umich.edu>

X86: Create an IO APIC device.


# 5638:dc073dc6358b 11-Oct-2008 Gabe Black <gblack@eecs.umich.edu>

X86: Rename the PC device to Pc.


# 5637:3d2451ebad92 11-Oct-2008 Gabe Black <gblack@eecs.umich.edu>

X86: Bring the South Bridge device into dev/x86 and get rid of south_bridge directory.


# 5636:27a9526eea1f 11-Oct-2008 Gabe Black <gblack@eecs.umich.edu>

X86: Change I8254 and PCSpeaker devices from subdevices to SimObjects and eliminate subdevices.


# 5635:b65e232e7755 11-Oct-2008 Gabe Black <gblack@eecs.umich.edu>

Devices: Make the Intel8254Timer device only use pointers to its counters.


# 5478:ca055528a3b3 17-Jun-2008 Nathan Binkert <nate@binkert.org>

Rename SimConsole to Terminal since it makes more sense


# 5446:23711deb13ac 12-Jun-2008 Gabe Black <gblack@eecs.umich.edu>

X86: Make the platform object initialize channel 0 of the PIT.


# 5389:215d8a8c97df 25-Mar-2008 Gabe Black <gblack@eecs.umich.edu>

X86: Change the Opteron platform to be the PC platform.