c5c2eb5fd6
There are instructions (e.g. wsbh) only available in MIPS32R2 which is the isa level used by many MIPS targets in OpenWrt. As we use the malta target mostly for development and testing purposes, setting the CPU_TYPE to 24Kc will make the emulation more real. The following is output from qemu-system-mipsel 2.3.0 root@OpenWrt:/# cat /proc/cpuinfo | grep 'cpu model\|isa' cpu model : MIPS 24Kc V0.0 FPU V0.0 isa : mips1 mips2 mips32r1 mips32r2 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> SVN-Revision: 47324 |
||
---|---|---|
.. | ||
base-files/etc | ||
be | ||
be64 | ||
image | ||
le | ||
le64 | ||
patches | ||
config-3.18 | ||
Makefile | ||
README |
This Malta target is intended to be used with the Qemu emulator. It can be used to prototype an OpenWrt firmware for MIPS processors. One could also use it to troubleshoot MIPS applications without access to real hardware. To use the images built by OpenWrt with qemu, use the following commands: For the little-endian image: qemu-system-mipsel -kernel bin/malta/openwrt-malta-le-vmlinux-initramfs.elf -nographic -m 256 For the big-endian image: qemu-system-mips -kernel bin/malta/openwrt-malta-be-vmlinux-initramfs.elf -nographic -m 256 and enjoy the system bootin.