Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sim: sim_saveusercontext & sim_fullcontextrestore update #8472

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

GUIDINGLI
Copy link
Contributor

Summary

sim: correct save irq flags error when use sim 64bits
sim: change sim_saveusercontext & sim_fullcontextrestore to inline function

Impact

sim switch context

Testing

VELA

Signed-off-by: ligd <liguiding1@xiaomi.com>
@GUIDINGLI GUIDINGLI marked this pull request as draft February 8, 2023 14:29
sim/sim_doirq.c: In function 'sim_doirq':
Error: sim/sim_doirq.c:79:10: error: function may return address of local variable [-Werror=return-local-addr]
   79 |   return regs;
      |          ^~~~
sim/sim_doirq.c:44:14: note: declared here
   44 |   xcpt_reg_t tmp[XCPTCONTEXT_REGS];
      |              ^~~

Signed-off-by: ligd <liguiding1@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 9b35a2e into apache:master Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants