Hello Gabe Black, Jason Lowe-Power, Nikos Nikoleris, Alec Roelke, Weiping Liao, Alexandru Duțu, Brandon Potter,

I'd like you to reexamine a change. Please visit

    https://gem5-review.googlesource.com/2520

to look at the new patch set (#5).

Change subject: dev: Add an InterruptPin class to wrap plain interrupts
......................................................................

dev: Add an InterruptPin class to wrap plain interrupts

Plain interrupts are currently delivered using platform-specific
interrupt controllers. This makes it hard to implement MMIO devices
with interrupts (e.g., VirtIO). This change introduces an abstract
interrupt adaptor class, InterruptPin, that can be implemented by
platforms that need to support such devices.

Devices that need to implement interrupts should take an InterruptPin
parameter. Such devices call InterruptPin::raise() to raise an
interrupt and InterruptPin::clear() to clear the interrupt.

Devices with optional interrupt capabilities may use the
IgnoreInterruptPin to ignore interrupts by default. This class can
optionally print a warning if an interrupt is triggered by setting the
'warning' parameter. WarnInterruptPin is a Python convenience class to
that warns when an interrupt is triggered.

Change-Id: I181d952f17958549f25883e8aed4b00681550158
Signed-off-by: Andreas Sandberg <[email protected]>
Reviewed-by: Nikos Nikoleris <[email protected]>
---
A src/dev/Interrupt.py
M src/dev/SConscript
A src/dev/interrupt.cc
A src/dev/interrupt.hh
4 files changed, 257 insertions(+), 0 deletions(-)


--
To view, visit https://gem5-review.googlesource.com/2520
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I181d952f17958549f25883e8aed4b00681550158
Gerrit-Change-Number: 2520
Gerrit-PatchSet: 5
Gerrit-Owner: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Alec Roelke <[email protected]>
Gerrit-Reviewer: Alexandru Duțu <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Brandon Potter <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Nikos Nikoleris <[email protected]>
Gerrit-Reviewer: Weiping Liao <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to