sim: remove unused variable in sim_saveusercontext()

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2022-12-21 16:03:22 +08:00 committed by Xiang Xiao
parent 1544adb548
commit 18beaaa480
1 changed files with 1 additions and 3 deletions

View File

@ -89,13 +89,11 @@
({ \ ({ \
irqstate_t flags = up_irq_flags(); \ irqstate_t flags = up_irq_flags(); \
uint32_t *env = (uint32_t *)saveregs + JB_FLAG; \ uint32_t *env = (uint32_t *)saveregs + JB_FLAG; \
int ret; \
\ \
env[0] = flags & UINT32_MAX; \ env[0] = flags & UINT32_MAX; \
env[1] = (flags >> 32) & UINT32_MAX; \ env[1] = (flags >> 32) & UINT32_MAX; \
\ \
ret = setjmp(saveregs); \ setjmp(saveregs); \
ret; \
}) })
#define sim_fullcontextrestore(restoreregs) \ #define sim_fullcontextrestore(restoreregs) \
do \ do \