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

View File

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