Trace: Allow printing ASIDs and selectively tracing based on user/kernel code.
Debug flags are ExecUser, ExecKernel, and ExecAsid. ExecUser and ExecKernel are set by default when Exec is specified. Use minus sign with ExecUser or ExecKernel to remove user or kernel tracing respectively.
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
* Ali Saidi
|
||||
*/
|
||||
|
||||
#include "arch/alpha/ev5.hh"
|
||||
#include "arch/alpha/utility.hh"
|
||||
|
||||
#if FULL_SYSTEM
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#include "config/full_system.hh"
|
||||
#include "cpu/static_inst.hh"
|
||||
#include "cpu/thread_context.hh"
|
||||
#include "arch/alpha/ev5.hh"
|
||||
|
||||
namespace AlphaISA {
|
||||
|
||||
@@ -111,6 +112,12 @@ advancePC(PCState &pc, const StaticInstPtr inst)
|
||||
pc.advance();
|
||||
}
|
||||
|
||||
inline uint64_t
|
||||
getExecutingAsid(ThreadContext *tc)
|
||||
{
|
||||
return DTB_ASN_ASN(tc->readMiscRegNoEffect(IPR_DTB_ASN));
|
||||
}
|
||||
|
||||
} // namespace AlphaISA
|
||||
|
||||
#endif // __ARCH_ALPHA_UTILITY_HH__
|
||||
|
||||
Reference in New Issue
Block a user