diff options
Diffstat (limited to 'src/arch/arm/utility.hh')
-rw-r--r-- | src/arch/arm/utility.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/arch/arm/utility.hh b/src/arch/arm/utility.hh index 20cb9b426..8ad3de66a 100644 --- a/src/arch/arm/utility.hh +++ b/src/arch/arm/utility.hh @@ -173,7 +173,12 @@ advancePC(PCState &pc, const StaticInstPtr inst) Addr truncPage(Addr addr); Addr roundPage(Addr addr); -}; +inline uint64_t +getExecutingAsid(ThreadContext *tc) +{ + return tc->readMiscReg(MISCREG_CONTEXTIDR); +} +}; #endif |