How to add new architecture?
Is there a description of how to add a new processor architecture to QEMU? I looked at the Wiki and at the QEMU-Buch, but there doesn't seem to be anything on topic.
Signature · 2 lines
Michael Eager [email protected] 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
Quoted 3 lines · Michael Eager
Is there a description of how to add a new processor architecture to QEMU? I looked at the Wiki and at the QEMU-Buch, but there doesn't seem to be anything on topic.
Looking for target-xxx/ if you want to add a new guest,
tcg/xxx/ if you want to add a new host.
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
Quoted 7 lines · 陳韋任 (Wei-Ren Chen)
Quoted 3 lines · Michael Eager
Is there a description of how to add a new processor architecture to QEMU? I looked at the Wiki and at the QEMU-Buch, but there doesn't seem to be anything on topic.
Looking for target-xxx/ if you want to add a new guest,
tcg/xxx/ if you want to add a new host.
I want to add a new guest architecture.
Is there any description of what the configuration options mean?
Signature · 2 lines
Michael Eager [email protected] 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
Quoted 3 lines
I want to add a new guest architecture.
Is there any description of what the configuration options mean?
You mean the options list in ../${QEMU_SRC}/configure --help?
Not sure why you need to care about that.
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
Quoted 10 lines · Michael Eager
Quoted 7 lines · 陳韋任 (Wei-Ren Chen)
Quoted 3 lines · Michael Eager
Is there a description of how to add a new processor architecture to QEMU? I looked at the Wiki and at the QEMU-Buch, but there doesn't seem to be anything on topic.
Looking for target-xxx/ if you want to add a new guest,
tcg/xxx/ if you want to add a new host.I want to add a new guest architecture.
I suggest you take a look on openrisc patchset [1], it's a relative
new added guest support.
Regards,
chenwj
[1] https://lists.gnu.org/archive/html/qemu-devel/2012-07/msg02567.html
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
Quoted 6 lines · 陳韋任 (Wei-Ren Chen)
Quoted 3 lines
I want to add a new guest architecture.
Is there any description of what the configuration options mean?
You mean the options list in
../${QEMU_SRC}/configure --help?
Not sure why you need to care about that.
In $QEMU_SRC/configure, architectures have these configuration options (and several more):
target_nptl="yes"
target_phys_bits=32
target_libs_softmmu="$fdt_libs"In the target-*/cpu.h, there are defines like:
#define TARGET_LONG_BITS 32
#define TARGET_HAS_ICE 1
#define TARGET_PAGE_BITS 12
#define TARGET_PAGE_BITS 10
#define TARGET_PHYS_ADDR_SPACE_BITS 40
#define TARGET_VIRT_ADDR_SPACE_BITS 32There are also required specification like CPUState or CPUArchState.
Is there any description of these configuration options?
Quoted 4 lines
I suggest you take a look on openrisc patchset [1], it's a relative
new added guest support.[1] https://lists.gnu.org/archive/html/qemu-devel/2012-07/msg02567.html
Thanks.
Signature · 2 lines
Michael Eager [email protected] 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
Quoted 23 lines · Michael Eager
Quoted 6 lines · 陳韋任 (Wei-Ren Chen)
Quoted 3 lines
I want to add a new guest architecture.
Is there any description of what the configuration options mean?
You mean the options list in
../${QEMU_SRC}/configure --help?
Not sure why you need to care about that.In $QEMU_SRC/configure, architectures have these configuration options (and several more):
target_nptl="yes" target_phys_bits=32 target_libs_softmmu="$fdt_libs"In the
target-*/cpu.h, there are defines like:#define TARGET_LONG_BITS 32 #define TARGET_HAS_ICE 1 #define TARGET_PAGE_BITS 12 #define TARGET_PAGE_BITS 10 #define TARGET_PHYS_ADDR_SPACE_BITS 40 #define TARGET_VIRT_ADDR_SPACE_BITS 32
Quoted 3 lines
There are also required specification like CPUState or CPUArchState.
Is there any description of these configuration options?
Well, you need to read the source code. :) Basically, TARGET_XXX
describes guest characteristics. QEMU now is refactoring its code base, for example, perfer to use CPUArchState rather than CPUState. OpenRISC port is a good example/template you can use.
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