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.
faisal
Posts: 359
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 44 times
Been thanked: 58 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
Giovanni
Site Admin
Posts: 14169
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1021 times
Been thanked: 871 times
Contact:

Re: armv7/8-A simulator port

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

Hi,

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.

Giovanni


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 8 guests