Hi, Am 11.12.2012 19:40, schrieb Michael Eager: > Is there any internal documentation for QEMU? > > I'm adding support for a new processor. I'm currently > adding semihosting support and a new command line option. > I find that I'm reading a lot of uncommented code and > trying to reverse engineer QEMU's design by reading how > various targets are implemented. > > Is there a better way?
Look at the latest added target-openrisc in qemu.git and/or at my target-rl78 at GitHub.com/afaerber/qemu-rl78/. That will also give you some ideas how to split your new target into reviewable patches. Also look at the mailing list, you may find old/bad examples in our code base but patch review usually points out the right ways to do things nowadays. When in doubt, ask. :) Regards, Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg