On Tue, Oct 22, 2013 at 8:15 PM, Sebastian Macke <sebast...@macke.de> wrote: > On 22/10/2013 9:01 AM, Max Filippov wrote: >> >> On Tue, Oct 22, 2013 at 7:45 PM, Sebastian Macke <sebast...@macke.de> >> wrote: >>> >>> Hi Alex, >>> >>> I am using a cross-compiling toolchain. It's the easiest way as I have to >>> compile the image for QEMU anyhow. >>> http://opencores.org/or1k/OpenRISC_GNU_tool_chain >>> >>> Then it's just an "make && make test" in the corresponding >>> tests/tcg/openrisc folder. >>> >>> Inside the virtual machine it would be a little bit more complicated. You >>> have to compile Linux with the initramfs containing the QEMU test >>> sources. >>> Another storage device is currently not supported by the OpenRISC QEMU >>> emulator. >> >> It should be possible to use network, I did a quick check at the time of >> openrisc port submission, it used to work. >> > > This is true. Via a network file system it should be no problem. But this is > a very complicated way to test the QEMU tcg part. > The image containing gcc I am currently using you can download under > www.simulationcorner.net/vmlinux > Run it with "qemu-system-or32 -m 128 -kernel vmlinux -nographic"
I can think of an easier way: try using linux user emulation instead of system emulation, it should make mostly little difference wrt TCG. It should be "qemu-or32 linux-elf-file-to-run". -- Thanks. -- Max