arch: Use const StaticInstPtr references where possible
This patch optimises the passing of StaticInstPtr by avoiding copying the reference-counting pointer. This avoids first incrementing and then decrementing the reference-counting pointer.
This commit is contained in:
@@ -69,7 +69,7 @@ StackTrace::StackTrace()
|
||||
panic("StackTrace constructor not implemented.\n");
|
||||
}
|
||||
|
||||
StackTrace::StackTrace(ThreadContext *_tc, StaticInstPtr inst)
|
||||
StackTrace::StackTrace(ThreadContext *_tc, const StaticInstPtr &inst)
|
||||
: tc(0), stack(64)
|
||||
{
|
||||
panic("StackTrace constructor not implemented.\n");
|
||||
|
||||
Reference in New Issue
Block a user