On Sat, Mar 13, 2010 at 01:51:35AM -0600, Rob Landley wrote: > Using qemu-system-sh4, this commit: > > e1c09175bc00dd8dfb2ad1b26e1858dcdc109b59 is first bad commit > commit e1c09175bc00dd8dfb2ad1b26e1858dcdc109b59 > Author: Gerd Hoffmann <kra...@redhat.com> > Date: Tue Dec 8 13:11:44 2009 +0100 > > zap serial_monitor_mux > > The logic in this code obviously predates the multiple monitor > capability of qemu and looks increasingly silly these days. > > I think the intention of this piece of code is to get a reasonable > default for the -nographic case: have monitor and serial line muxed > on stdio. > > With the new default_serial and default_monitor variables we have now > doing just that became much easier ;) > > Signed-off-by: Gerd Hoffmann <kra...@redhat.com> > Signed-off-by: Anthony Liguori <aligu...@us.ibm.com> > > Made "-serial stdio" now do: > > chardev: opening backend "stdio" failed > qemu: could not open serial device 'stdio': Inappropriate ioctl for device > > Am I using it wrong? > > If I don't override it, I instead get: > > long read to SH7750_WCR1_A7 (0x000000001f800008) ignored > long read to SH7750_WCR2_A7 (0x000000001f80000c) ignored > long read to SH7750_WCR3_A7 (0x000000001f800010) ignored > long read to SH7750_MCR_A7 (0x000000001f800014) ignored > long read to SH7750_MCR_A7 (0x000000001f800014) ignored > sh_serial: unsupported read from 0x10 > qemu-system-sh4: /home/landley/qemu/git/hw/sh_serial.c:285: > sh_serial_ioport_read: Assertion `0' failed. > > Is anybody out there actually using the sh4 emulator? I've gotten it to work > several times before on various random git snapshots, but never in a release > version... >
Would be nice to give that you give the actual command line to try to use. I am using the stable-0.12 branch (plus some backporting patches for the MMU) to do development on sh4. HEAD still works correctly here. I am using the following command line: ~/git/qemu/sh4-softmmu/qemu-system-sh4 -M r2d -kernel zImage -drive file=sh4.img -serial null -serial stdio -usb -append "root=/dev/sda1 console=tty0 console=ttySC0,115200 noiotrap" -usbdevice keyboard -usbdevice mouse -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurel...@aurel32.net http://www.aurel32.net