diff options
Diffstat (limited to 'src/arch/arm/insts/static_inst.hh')
-rw-r--r-- | src/arch/arm/insts/static_inst.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/arm/insts/static_inst.hh b/src/arch/arm/insts/static_inst.hh index 9ca64d1fe..55d16f69d 100644 --- a/src/arch/arm/insts/static_inst.hh +++ b/src/arch/arm/insts/static_inst.hh @@ -404,6 +404,15 @@ class ArmStaticInst : public StaticInst NSACR nsacr, FPEXC fpexc, bool fpexc_check, bool advsimd) const; + /** + * Get the new PSTATE from a SPSR register in preparation for an + * exception return. + * + * See shared/functions/system/SetPSTATEFromPSR in the ARM ARM + * psueodcode library. + */ + CPSR getPSTATEFromPSR(ThreadContext *tc, CPSR cpsr, CPSR spsr) const; + public: virtual void annotateFault(ArmFault *fault) {} |