marss icon indicating copy to clipboard operation
marss copied to clipboard

about the Return Address Stack(RAS)

Open xubaqian opened this issue 4 years ago • 0 comments

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?

xubaqian avatar Oct 21 '20 07:10 xubaqian