Skip to contentSkip to conversation

How to port qemu-0.10.x to alpha host?

Qemu-devel linu king 2 participants 2 messages Jun 24, 2009

lore
Share & tools
lore

linu king

author
#0 lore raw

Hi all:

what should i do if i wanna port qemu-0.10.x to a new host (e.g.,
alpha), suppose the target is x86, is it enough just adding a direcory named tcg/alpha and implementing two files, tcg-target.c and tcg-target.h, inside it. anything else to do ? it will be of great help if anyone can give me a complete roadmap or steps about qemu-0.10.x porting.

thanks.

#1 lore raw
Quoted 5 lines · linu king

what should i do if i wanna port qemu-0.10.x to a new host (e.g.,
alpha), suppose the target is x86, is it enough just adding a direcory named tcg/alpha and implementing two files, tcg-target.c and tcg-target.h, inside it. anything else to do ? it will be of great help if anyone can give me a complete roadmap or steps about qemu-0.10.x porting.

That's pretty much it.

For Alpha, the configure script and makefiles appear to have been already taken care of.

The easiest approach would be to look at other targets, and see how they work. You needn't bother implementing those ops that correspond to TCG_TARGET_HAS_* definitions (see */tcg-target.h), and it would probably be best to implement TCG ops only with the tightest possible constraints at first (i.e. register operands only for all ops except qemu_{ld,st}*).

tcg/README documents most of what you should need.

Cheers,

Signature · 1 line
Stuart Brady