Skip to contentSkip to conversation

How to create new target port?

Qemu-devel Michael Eager 3 participants 5 messages May 23, 2012

lore
Share & tools
lore
#0 lore raw

Hi All --

I'm investigating adding a new target architecture to QEMU. Are there documents, how-to's, or other guidance on how to approach this? Or any advice?

I noticed that there are a number of directories for architectures like target-arm and target-mips. There are also definitions under tcg for arm and mips. I noticed that target-microblaze exists, but there is no microblaze directory under tcg. What does this mean?

Signature · 2 lines
Michael Eager	 [email protected]
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077
#1 lore raw
Quoted 10 lines

I'm investigating adding a new target architecture to QEMU. Are there documents, how-to's, or other guidance on how to approach this? Or any advice?

I noticed that there are a number of directories for architectures like target-arm and target-mips. There are also definitions under tcg for arm and mips. I noticed that target-microblaze exists, but there is no microblaze directory under tcg. What does this mean?

Depends on what you'd like to add, a guest or a host support. If you want to
add a new guest, take target-xxx/* as an example. Otherwise, looks at tcg/xxx/*. The term "target" could be a little MISLEADING here. :)

Regards,
chenwj

Signature · 5 lines
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
#2 lore raw
Quoted 11 lines · 陳韋任
Quoted 10 lines

I'm investigating adding a new target architecture to QEMU. Are there documents, how-to's, or other guidance on how to approach this? Or any advice?

I noticed that there are a number of directories for architectures like target-arm and target-mips. There are also definitions under tcg for arm and mips. I noticed that target-microblaze exists, but there is no microblaze directory under tcg. What does this mean?

Quoted 3 lines

Depends on what you'd like to add, a guest or a host support. If you want to
add a new guest, take target-xxx/* as an example. Otherwise, looks at tcg/xxx/*. The term "target" could be a little MISLEADING here. :)

I'm interested in adding a new emulated architecture, not a new host. So adding a new target-<arch> sounds like the plan.

Signature · 2 lines
Michael Eager	 [email protected]
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077
#3 lore raw

Am 23.05.2012 16:37, schrieb Michael Eager:

Quoted 12 lines · 陳韋任
Quoted 11 lines
Quoted 10 lines

I'm investigating adding a new target architecture to QEMU. Are there documents, how-to's, or other guidance on how to approach this? Or any advice?

I noticed that there are a number of directories for architectures like target-arm and target-mips. There are also definitions under tcg for arm and mips. I noticed that target-microblaze exists, but there is no microblaze directory under tcg. What does this mean?

Quoted 8 lines
Quoted 4 lines

Depends on what you'd like to add, a guest or a host support. If
you want to
add a new guest, take target-xxx/* as an example. Otherwise, looks at tcg/xxx/*. The term "target" could be a little MISLEADING here. :)

I'm interested in adding a new emulated architecture, not a new host. So adding a new target-<arch> sounds like the plan.

Yes, that's the place for new target architectures.

Which architecture are you thinking of? Maybe someone else is already working on it. http://wiki.qemu.org/Links has an incomplete list of links to unofficial versions of QEMU which support additional targets.

Regards,
Stefan Weil

#4 lore raw
Quoted 21 lines · Stefan Weil

Am 23.05.2012 16:37, schrieb Michael Eager:

Quoted 12 lines · 陳韋任
Quoted 11 lines
Quoted 10 lines

I'm investigating adding a new target architecture to QEMU. Are there documents, how-to's, or other guidance on how to approach this? Or any advice?

I noticed that there are a number of directories for architectures like target-arm and target-mips. There are also definitions under tcg for arm and mips. I noticed that target-microblaze exists, but there is no microblaze directory under tcg. What does this mean?

Quoted 7 lines
Quoted 3 lines

Depends on what you'd like to add, a guest or a host support. If you want to add a new guest, take target-xxx/* as an example. Otherwise, looks at tcg/xxx/*. The term "target" could be a little MISLEADING here. :)

I'm interested in adding a new emulated architecture, not a new host. So adding a new target-<arch> sounds like the plan.

Quoted 6 lines

Yes, that's the place for new target architectures.

Which architecture are you thinking of? Maybe someone else is already working on it. http://wiki.qemu.org/Links has an incomplete list of links to unofficial versions of QEMU which support additional targets.

Thanks for the pointer. It's a proprietary architecture, not one of those mentioned. I'll add it to the list as we move forward with the project.

Signature · 2 lines
Michael Eager	 [email protected]
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077