dev: Delete the authors list from files in src/dev.
[gem5.git] / src / dev / arm / gic_v3_cpu_interface.cc
index 73257a718f819c09b2ef002f0ac06e6d033cc783..b77fd3a7bad0d2eb624f38d43d1b178efdd26e31 100644 (file)
@@ -36,8 +36,6 @@
  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Jairo Balart
  */
 
 #include "dev/arm/gic_v3_cpu_interface.hh"
@@ -69,6 +67,13 @@ Gicv3CPUInterface::init()
     distributor = gic->getDistributor();
 }
 
+void
+Gicv3CPUInterface::resetHppi(uint32_t intid)
+{
+    if (intid == hppi.intid)
+        hppi.prio = 0xff;
+}
+
 void
 Gicv3CPUInterface::setThreadContext(ThreadContext *tc)
 {
@@ -1843,7 +1848,7 @@ Gicv3CPUInterface::activateIRQ(uint32_t int_id, Gicv3::GroupId group)
     // By setting the priority to 0xff we are effectively
     // making the int_id not pending anymore at the cpu
     // interface.
-    hppi.prio = 0xff;
+    resetHppi(int_id);
     updateDistributor();
 }