armv7/8-A simulator port

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
Posts: 374
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 44 times
Been thanked: 60 times

armv7/8-A simulator port

Postby faisal » Wed Nov 23, 2022 5:17 pm

I've been making use of the simulator port quite a bit, and now need to be able to run simulation on something like a raspberry pi.

The current simulation port is for x86. Any hope you can make a port for armv7-A and armv8-A (I think they may be identical?).

User avatar
Site Admin
Posts: 14462
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1078 times
Been thanked: 922 times

Re: armv7/8-A simulator port

Postby Giovanni » Wed Nov 23, 2022 7:36 pm


I don't have ARM Linux hosts but ARMv7a should be simple, ARMv8a I have no idea frankly, never touched that.

Anyway the only asm code required is the switch routine: push all function-saved registers, switch stack, pop all function-saved registers, the rest of simulator files would be exactly the same.

In case of ARMv7a it could be the very same simulator port with an #ifdef around the switch code.


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 7 guests