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:
@@ -48,7 +48,7 @@ class StackTrace
|
||||
|
||||
public:
|
||||
bool
|
||||
trace(ThreadContext *tc, StaticInstPtr inst)
|
||||
trace(ThreadContext *tc, const StaticInstPtr &inst)
|
||||
{
|
||||
panic("StackTrace::trace not implemented for SPARC.\n");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user