mem-ruby: Optionally set Consumer ev. priority
JIRA: https://gem5.atlassian.net/browse/GEM5-920 Change-Id: I62dc6656bbed4e7f4d575a6a82ac254382294ed1 Signed-off-by: Tiago Mück <tiago.muck@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41855 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Meatboy 106 <garbage2collector@gmail.com> Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -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)
|
||||
{ }
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user