mirror of
https://github.com/seL4/seL4.git
synced 2026-03-27 10:29:57 +00:00
AArch64: mark isFpuEnable as DONT_TRANSLATE
Current verification model does not include lazy FPU switching, i.e. it acts as if this function always returns true, so no FPU faults could be produced. In order to guard against deriving a contradiction, we don't allow the C parser to translate it. Signed-off-by: Rafal Kolanski <rafal.kolanski@proofcraft.systems>
This commit is contained in:
committed by
Gerwin Klein
parent
91ec17c5bf
commit
c9989664e3
@@ -134,6 +134,12 @@ static inline void enableFpu(void)
|
||||
isFPUEnabledCached[CURRENT_CPU_INDEX()] = true;
|
||||
}
|
||||
|
||||
/* Current verification model does not include lazy FPU switching, i.e. it acts
|
||||
* as if this function always returns true, so no FPU faults could be produced.
|
||||
* In order to guard against deriving a contradiction, we don't allow the C
|
||||
* parser to translate it. */
|
||||
/** MODIFIES: */
|
||||
/** DONT_TRANSLATE */
|
||||
static inline bool_t isFpuEnable(void)
|
||||
{
|
||||
return isFPUEnabledCached[CURRENT_CPU_INDEX()];
|
||||
|
||||
Reference in New Issue
Block a user