All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-arm] QEMU user mode for cortex M
@ 2019-03-14 21:46 Massimiliano Cialdi
  2019-03-15 10:04 ` Peter Maydell
  0 siblings, 1 reply; 8+ messages in thread
From: Massimiliano Cialdi @ 2019-03-14 21:46 UTC (permalink / raw)
  To: qemu-arm

[-- Attachment #1: Type: text/plain, Size: 812 bytes --]

hello,
I would like to try some algorithms on cortex M (especially cortex M4). I
don't need to emulate the whole machine, I just need the user mode.
To test the feasibility, I wrote the trivial "hello world".

I can compile it with arm-none-eabi-gcc, but the newlib associated with it
does not implement any syscall.
So I tried, on ubuntu, with the cross compiler arm-linux-gnueabihf-gcc and
its libc6, but the latter is only distributed for cortex A.

What do you suggest? Should I recompile the libc6 for cortex M (or do I
find it pre-compiled)? Should I implement (and how?) syscalls on newlib?

In summary, I would need a step-by-step guide to running Cortex M code on
QEMU arm user mode.

best regards
Max

-- 
Et nunc, auxilium solis, vincam!
Oppugnatio solaris!
VIS!

Massimiliano Cialdi
cialdi@gmail.com

[-- Attachment #2: Type: text/html, Size: 1408 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-03-17 11:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-14 21:46 [Qemu-arm] QEMU user mode for cortex M Massimiliano Cialdi
2019-03-15 10:04 ` Peter Maydell
2019-03-15 10:56   ` Alex Bennée
2019-03-15 22:12   ` Massimiliano Cialdi
2019-03-16 12:01     ` Alex Bennée
2019-03-16 14:06       ` Peter Maydell
2019-03-16 20:34       ` Massimiliano Cialdi
2019-03-17 11:10         ` Massimiliano Cialdi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.