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

about the Return Address Stack(RAS) #65

Open
xubaqian opened this issue Oct 21, 2020 · 0 comments
Open

about the Return Address Stack(RAS) #65

xubaqian opened this issue Oct 21, 2020 · 0 comments

Comments

@xubaqian
Copy link

Hi. I have some questions about the RAS.

It seems the RAS is shared between OS and user program, and I wonder if it is shared between different threads. If it is, then if I configure a single core with 1 thread in config/default.conf

    min_contexts: 1
    max_contexts: 1

can this guarantee that the RAS is only occupied by one program at runtime?

And for multiple threads, how can I save/restore the RAS when context switch? Modify OS or MARSSx86?

If it is not shared, where is the code that saves/restores the RAS when context switch?

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

No branches or pull requests

1 participant