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

Question: CPU abort instead of exception? #587

Open
rogerdbenson opened this issue Feb 14, 2024 · 1 comment
Open

Question: CPU abort instead of exception? #587

rogerdbenson opened this issue Feb 14, 2024 · 1 comment

Comments

@rogerdbenson
Copy link

I've been developing some code, and I've had errors in said code. One behavior that I've seen that I don't understand is this; if a bad code pointer is fetched off of the stack into PC, then the framework issues a CPU abort. Why does this happen? This type of issue show up quite often in real devices, and the MCU issues an exception when it occurs. Why doesn't the Renode model issue a valid exception instead of a CPU abort? In a multi-machine situation, the abort causes the entire framework to become unusable, but an exception in a single model could be continued with a restart on the single machine with the exception. As a matter of fact, this is a valid test case, which can't be tested because of the CPU abort behavior.

Thanks,
Roger

@PiotrZierhoffer
Copy link
Member

Hi @rogerdbenson

Your scenario is of course valid, but it's also quite useful to be able to detect these situations early (if your exception handler handles it, you might not even notice the problem easily).

We do, however, try to make it an option. Can you provide more details on your setup? Especially what architecture and which exception are you concerned about?

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

2 participants