Re: Fw: [Qemu-devel] MIPS: UART access w/o -kernel option
Alexander Voropay wrote: I'm thinking about adding a new MIPS platform to the Qemu: http://www.linux-mips.org/wiki/Mips_Malta The Malta is very popular reference platform for the MIPS development. There is a special Linux MIPS/Malta kernel. Montavista and many other companies are offering a MIPS Malta distributives with pre-compiled kernels. There is a NetBSD port to the Malta. VxWorks/Malta exists, e.t.c. The Malta architecture is very similar to the current Qemu MIPS machine but the ISA addresses are different. Additionally, it has a PCI subsystem, so it should be possible to use existent Qemu PCI devices in the future. Malta has an standart PC ISA devices (inside the PIIX4 chip). The Qemu contains all necessary parts to introduce a new platform (except Galileo PCI). Fabrice, is it difficult to add a new MIPS Malta platform to the MIPS Qemu ? Could you add at least a framework for this platform (CLI options, initial .c files) ? P.S.The MIPS BIOS/kernel donload code should be reusable for the any MIPS platforms. Adding the Malta machine support would be very interesting. You can just copy the file mips_r4k.c to malta.c and modify it to add the missing parts. Fabrice. ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: [Qemu-devel] MIPS: UART access w/o -kernel option
Alexander Voropay wrote: I'm still trying to run a MIPS mmon as a BIOS :) I've found one strange issue : when it runs at the KSEG0 region (0x80008000) with -kernel option it works fine. When I'm trying to run it in the MIPS BIOS region (0xbfc0) it can't output anything to the UART and Qemu segfaults on the any keypress (not my program, but whole Qemu !) I've found this bug : hw/mips_r4k.c:mips_r4k_init() Qemu/MIPS does not initialize an ISA memory region when issued without -kernel option. (I've added some debug output). Whith -kernel: cpu_register_physical_memory: start=, size=0800, offset= cpu_register_physical_memory: start=1400, size=0001, offset=0050 cpu_register_physical_memory: start=100A, size=0002, offset=0060 cpu_register_physical_memory: start=E000, size=0040, offset=0800 Without -kernel: cpu_register_physical_memory: start=, size=0800, offset= cpu_register_physical_memory: start=1FC0, size=0002, offset=08400010 Segmentation fault Could someone correct this ? The ISA region and devices initialization should be performed *before* any fileload. P.S. The MIPS initial state (PC=0xbfc0) is defined twice in the qemu: ./target-mips/translate.c:cpu_mips_init():1766 and ./hw/mips_r4k.c:mips_r4k_init() Seems, this is a bug too. -- -=AV=- ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel