diff --git a/src/mem/ruby/common/Consumer.cc b/src/mem/ruby/common/Consumer.cc index 8017ed7d62..4ac82920be 100644 --- a/src/mem/ruby/common/Consumer.cc +++ b/src/mem/ruby/common/Consumer.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 ARM Limited + * Copyright (c) 2020-2021 ARM Limited * All rights reserved. * * The license below extends only to copyright in the software and shall @@ -46,9 +46,9 @@ namespace gem5 namespace ruby { -Consumer::Consumer(ClockedObject *_em) +Consumer::Consumer(ClockedObject *_em, Event::Priority ev_prio) : m_wakeup_event([this]{ processCurrentEvent(); }, - "Consumer Event", false), + "Consumer Event", false, ev_prio), em(_em) { } diff --git a/src/mem/ruby/common/Consumer.hh b/src/mem/ruby/common/Consumer.hh index 8849294cc6..9e8e89a6f4 100644 --- a/src/mem/ruby/common/Consumer.hh +++ b/src/mem/ruby/common/Consumer.hh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 ARM Limited + * Copyright (c) 2020-2021 ARM Limited * All rights reserved. * * The license below extends only to copyright in the software and shall @@ -61,7 +61,8 @@ namespace ruby class Consumer { public: - Consumer(ClockedObject *_em); + Consumer(ClockedObject *em, + Event::Priority ev_prio = Event::Default_Pri); virtual ~Consumer()