riscv: DONT_TRANSLATE modifies_sip
To prevent a contradiction, the C parser does not allow a function to claim both what it modifies and possess a body that may modify something else. Instruct the C parser to not translate it in order for the MODIFIES clause to take precedence. Signed-off-by: Rafal Kolanski <rafal.kolanski@data61.csiro.au>
This commit is contained in:
parent
b903cb7372
commit
1fba3d9e68
1 changed files with 1 additions and 0 deletions
|
|
@ -153,6 +153,7 @@ static inline word_t read_sstatus(void)
|
|||
}
|
||||
|
||||
/** MODIFIES: */
|
||||
/** DONT_TRANSLATE */
|
||||
static inline word_t read_sip(void)
|
||||
{
|
||||
word_t temp;
|
||||
|
|
|
|||
Loading…
Reference in a new issue