Giacomo Travaglini has uploaded this change for review. (
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>
---
M src/arch/arm/utility.hh
1 file changed, 16 insertions(+), 8 deletions(-)
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: 1
Gerrit-Owner: Giacomo Travaglini <giacomo.travagl...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
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