Giacomo Travaglini has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/53623 )
Change subject: arch-arm: Remove currOpMode utility function
......................................................................
arch-arm: Remove currOpMode utility function
This was used by the currEL function only. We are progressively
removing any interface referring to Armv7 concepts
Change-Id: I1d97b392d063e85562b9234c094b1f2166e75ac9
Signed-off-by: Giacomo Travaglini <giacomo.travagl...@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/53623
Reviewed-by: Andreas Sandberg <andreas.sandb...@arm.com>
Maintainer: Andreas Sandberg <andreas.sandb...@arm.com>
Tested-by: kokoro <noreply+kok...@google.com>
---
M src/arch/arm/utility.hh
1 file changed, 20 insertions(+), 8 deletions(-)
Approvals:
Andreas Sandberg: Looks good to me, approved; Looks good to me, approved
kokoro: Regressions pass
diff --git a/src/arch/arm/utility.hh b/src/arch/arm/utility.hh
index 2155e8c..9514eb0 100644
--- a/src/arch/arm/utility.hh
+++ b/src/arch/arm/utility.hh
@@ -108,17 +108,12 @@
bool inAArch64(ThreadContext *tc);
-static inline OperatingMode
-currOpMode(const ThreadContext *tc)
-{
- CPSR cpsr = tc->readMiscRegNoEffect(MISCREG_CPSR);
- return (OperatingMode) (uint8_t) cpsr.mode;
-}
-
static inline ExceptionLevel
currEL(const ThreadContext *tc)
{
- return opModeToEL(currOpMode(tc));
+ CPSR cpsr = tc->readMiscRegNoEffect(MISCREG_CPSR);
+
+ return opModeToEL((OperatingMode)(uint8_t)cpsr.mode);
}
inline ExceptionLevel
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/53623
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I1d97b392d063e85562b9234c094b1f2166e75ac9
Gerrit-Change-Number: 53623
Gerrit-PatchSet: 2
Gerrit-Owner: Giacomo Travaglini <giacomo.travagl...@arm.com>
Gerrit-Reviewer: Andreas Sandberg <andreas.sandb...@arm.com>
Gerrit-Reviewer: Giacomo Travaglini <giacomo.travagl...@arm.com>
Gerrit-Reviewer: kokoro <noreply+kok...@google.com>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s