[Qemu-devel] Host FPE for overflowing division on MIPS

2007-12-20 Thread Richard Sandiford
Running the libjava testsuite for -mabi=64 on a x86_64-linux-gnu-x-mips64 QEMU causes the emulator to exit with an FPE. The problem is that we use lldiv for ddiv, and lldiv is undefined for both divisions by zero and for divisions whose result is not representable. We special-case divisions in th

[Qemu-devel] [PATCH] Fix drive names in windows

2007-12-20 Thread Eduardo Felipe
Hi, Attached patch fixes drive names for windows. Using $ in formatting strings seems to be Unix specific. Regards, Edu --- vl.c 17 Dec 2007 04:42:28 - 1.388 +++ vl.c 21 Dec 2007 00:08:50 - @@ -5091,8 +5091,13 @@ if (type == IF_IDE || type == IF_SCSI) mediastr = (media ==