On the gem5 mailing list are often quesitons regarding bare metal usage with full system simulation. 

This git repository shows a simple example for an ARM Bare-Metal implementation with gem5. It can be used as a starting point for bare metal projects with this simulator. 

I hope that this code helps people starting with bare metal.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies).

You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.