summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-10-01 10:52:15 +0200
committerAvi Kivity <avi@qumranet.com>2007-10-01 10:52:15 +0200
commit5632a7b75435ac6f99dc817aa189fec633e4929c (patch)
tree2cea3a6bf1bd127409452b31486a4effcfef77a1 /tests
parentRe-import qemu 0.9.0 (diff)
downloadqemu-kvm-5632a7b75435ac6f99dc817aa189fec633e4929c.tar.gz
qemu-kvm-5632a7b75435ac6f99dc817aa189fec633e4929c.tar.bz2
qemu-kvm-5632a7b75435ac6f99dc817aa189fec633e4929c.zip
Import qemu as of Mon Oct 1 10:51:47 IST 2007
qemu/.cvsignore 1.21 qemu/COPYING 1.1 qemu/COPYING.LIB 1.2 qemu/Changelog 1.141 qemu/LICENSE 1.3 qemu/Makefile 1.126 qemu/Makefile.target 1.203 qemu/README 1.12 qemu/TODO 1.40 qemu/VERSION 1.30 qemu/a.out.h 1.3 qemu/aes.c 1.3 qemu/aes.h 1.1 qemu/alpha-dis.c 1.4 qemu/alpha.ld 1.1 qemu/arm-dis.c 1.5 qemu/arm-semi.c 1.6 qemu/arm.ld 1.2 qemu/block-bochs.c 1.5 qemu/block-cloop.c 1.6 qemu/block-cow.c 1.9 qemu/block-dmg.c 1.7 qemu/block-parallels.c 1.1 qemu/block-qcow.c 1.14 qemu/block-qcow2.c 1.9 qemu/block-raw.c 1.24 qemu/block-vmdk.c 1.17 qemu/block-vpc.c 1.6 qemu/block-vvfat.c 1.11 qemu/block.c 1.46 qemu/block_int.h 1.13 qemu/bswap.h 1.6 qemu/check_ops.sh 1.1 qemu/cocoa.m 1.13 qemu/configure 1.159 qemu/console.c 1.15 qemu/cpu-all.h 1.76 qemu/cpu-defs.h 1.24 qemu/cpu-exec.c 1.118 qemu/cutils.c 1.2 qemu/d3des.c 1.1 qemu/d3des.h 1.1 qemu/dis-asm.h 1.16 qemu/disas.c 1.43 qemu/disas.h 1.7 qemu/dyngen-exec.h 1.38 qemu/dyngen-op.h 1.1 qemu/dyngen.c 1.56 qemu/dyngen.h 1.17 qemu/elf.h 1.10 qemu/elf_ops.h 1.10 qemu/exec-all.h 1.66 qemu/exec.c 1.107 qemu/gdbstub.c 1.65 qemu/gdbstub.h 1.6 qemu/host-utils.c 1.1 qemu/hostregs_helper.h 1.1 qemu/hpet.h 1.1 qemu/i386-dis.c 1.5 qemu/i386-vl.ld 1.3 qemu/i386.ld 1.2 qemu/ia64.ld 1.1 qemu/keymaps.c 1.3 qemu/kqemu.c 1.19 qemu/kqemu.h 1.2 qemu/loader.c 1.8 qemu/m68k-dis.c 1.4 qemu/m68k-semi.c 1.3 qemu/m68k.ld 1.1 qemu/mips-dis.c 1.8 qemu/mips.ld 1.1 qemu/mipsel.ld 1.1 qemu/monitor.c 1.83 qemu/osdep.c 1.18 qemu/osdep.h 1.10 qemu/ppc-dis.c 1.8 qemu/ppc.ld 1.3 qemu/qemu-binfmt-conf.sh 1.6 qemu/qemu-doc.texi 1.159 qemu/qemu-img.c 1.21 qemu/qemu-img.texi 1.6 qemu/qemu-tech.texi 1.14 qemu/qemu_socket.h 1.2 qemu/readline.c 1.6 qemu/s390-dis.c 1.3 qemu/s390.ld 1.1 qemu/sdl.c 1.44 qemu/sdl_keysym.h 1.3 qemu/sh4-dis.c 1.3 qemu/softmmu-semi.h 1.2 qemu/softmmu_exec.h 1.1 qemu/softmmu_header.h 1.16 qemu/softmmu_template.h 1.18 qemu/sparc-dis.c 1.7 qemu/sparc.ld 1.2 qemu/sparc64.ld 1.1 qemu/tap-win32.c 1.6 qemu/texi2pod.pl 1.2 qemu/thunk.c 1.8 qemu/thunk.h 1.14 qemu/translate-all.c 1.19 qemu/translate-op.c 1.2 qemu/uboot_image.h 1.1 qemu/usb-linux.c 1.12 qemu/vgafont.h 1.1 qemu/vl.c 1.343 qemu/vl.h 1.273 qemu/vnc.c 1.25 qemu/vnc_keysym.h 1.2 qemu/vnchextile.h 1.4 qemu/x86_64.ld 1.1 qemu/x_keymap.c 1.1 qemu/audio/alsaaudio.c 1.10 qemu/audio/audio.c 1.17 qemu/audio/audio.h 1.9 qemu/audio/audio_int.h 1.11 qemu/audio/audio_template.h 1.9 qemu/audio/coreaudio.c 1.8 qemu/audio/dsound_template.h 1.4 qemu/audio/dsoundaudio.c 1.3 qemu/audio/fmodaudio.c 1.7 qemu/audio/mixeng.c 1.5 qemu/audio/mixeng.h 1.3 qemu/audio/mixeng_template.h 1.2 qemu/audio/noaudio.c 1.7 qemu/audio/ossaudio.c 1.12 qemu/audio/rate_template.h 1.3 qemu/audio/sdlaudio.c 1.9 qemu/audio/sys-queue.h 1.1 qemu/audio/wavaudio.c 1.10 qemu/audio/wavcapture.c 1.8 qemu/darwin-user/commpage.c 1.2 qemu/darwin-user/ioctls.h 1.1 qemu/darwin-user/ioctls_types.h 1.1 qemu/darwin-user/machload.c 1.1 qemu/darwin-user/main.c 1.7 qemu/darwin-user/mmap.c 1.2 qemu/darwin-user/qemu.h 1.1 qemu/darwin-user/signal.c 1.1 qemu/darwin-user/syscall.c 1.6 qemu/darwin-user/syscalls.h 1.3 qemu/fpu/softfloat-macros.h 1.1 qemu/fpu/softfloat-native.c 1.11 qemu/fpu/softfloat-native.h 1.11 qemu/fpu/softfloat-specialize.h 1.3 qemu/fpu/softfloat.c 1.6 qemu/fpu/softfloat.h 1.8 qemu/hw/acpi.c 1.15 qemu/hw/adb.c 1.9 qemu/hw/adlib.c 1.7 qemu/hw/ads7846.c 1.3 qemu/hw/alpha_palcode.c 1.3 qemu/hw/an5206.c 1.3 qemu/hw/apb_pci.c 1.7 qemu/hw/apic.c 1.16 qemu/hw/arm_boot.c 1.9 qemu/hw/arm_gic.c 1.7 qemu/hw/arm_pic.c 1.3 qemu/hw/arm_pic.h 1.3 qemu/hw/arm_sysctl.c 1.4 qemu/hw/arm_timer.c 1.7 qemu/hw/cdrom.c 1.3 qemu/hw/cirrus_vga.c 1.28 qemu/hw/cirrus_vga_rop.h 1.3 qemu/hw/cirrus_vga_rop2.h 1.9 qemu/hw/cs4231.c 1.3 qemu/hw/cuda.c 1.16 qemu/hw/dma.c 1.15 qemu/hw/ds1225y.c 1.2 qemu/hw/ecc.c 1.1 qemu/hw/eepro100.c 1.6 qemu/hw/eeprom93xx.c 1.1 qemu/hw/eeprom93xx.h 1.1 qemu/hw/es1370.c 1.7 qemu/hw/esp.c 1.26 qemu/hw/fdc.c 1.27 qemu/hw/fmopl.c 1.1 qemu/hw/fmopl.h 1.1 qemu/hw/grackle_pci.c 1.6 qemu/hw/gt64xxx.c 1.20 qemu/hw/heathrow_pic.c 1.5 qemu/hw/i2c.c 1.3 qemu/hw/i2c.h 1.4 qemu/hw/i8254.c 1.11 qemu/hw/i8259.c 1.25 qemu/hw/ide.c 1.69 qemu/hw/integratorcp.c 1.20 qemu/hw/iommu.c 1.16 qemu/hw/irq.c 1.2 qemu/hw/irq.h 1.1 qemu/hw/isa_mmio.c 1.2 qemu/hw/jazz_led.c 1.2 qemu/hw/lsi53c895a.c 1.10 qemu/hw/m48t59.c 1.15 qemu/hw/m48t59.h 1.7 qemu/hw/max111x.c 1.2 qemu/hw/max7310.c 1.2 qemu/hw/mc146818rtc.c 1.12 qemu/hw/mcf5206.c 1.3 qemu/hw/mcf5208.c 1.4 qemu/hw/mcf_fec.c 1.3 qemu/hw/mcf_intc.c 1.2 qemu/hw/mcf_uart.c 1.2 qemu/hw/mips_int.c 1.5 qemu/hw/mips_malta.c 1.44 qemu/hw/mips_pica61.c 1.8 qemu/hw/mips_r4k.c 1.47 qemu/hw/mips_timer.c 1.8 qemu/hw/nand.c 1.4 qemu/hw/ne2000.c 1.29 qemu/hw/omap.c 1.5 qemu/hw/omap.h 1.3 qemu/hw/omap1_clk.c 1.1 qemu/hw/omap_lcd_template.h 1.2 qemu/hw/omap_lcdc.c 1.1 qemu/hw/omap_mmc.c 1.1 qemu/hw/openpic.c 1.15 qemu/hw/palm.c 1.1 qemu/hw/parallel.c 1.10 qemu/hw/pc.c 1.85 qemu/hw/pci.c 1.41 qemu/hw/pci_host.h 1.2 qemu/hw/pckbd.c 1.23 qemu/hw/pcnet.c 1.19 qemu/hw/pcspk.c 1.3 qemu/hw/pflash_cfi02.c 1.8 qemu/hw/piix_pci.c 1.11 qemu/hw/pixel_ops.h 1.2 qemu/hw/pl011.c 1.7 qemu/hw/pl031.c 1.1 qemu/hw/pl050.c 1.6 qemu/hw/pl080.c 1.5 qemu/hw/pl110.c 1.12 qemu/hw/pl110_template.h 1.4 qemu/hw/pl181.c 1.8 qemu/hw/pl190.c 1.5 qemu/hw/ppc.c 1.29 qemu/hw/ppc405.h 1.6 qemu/hw/ppc405_boards.c 1.5 qemu/hw/ppc405_uc.c 1.10 qemu/hw/ppc_chrp.c 1.41 qemu/hw/ppc_prep.c 1.42 qemu/hw/prep_pci.c 1.5 qemu/hw/ps2.c 1.8 qemu/hw/ptimer.c 1.4 qemu/hw/pxa.h 1.6 qemu/hw/pxa2xx.c 1.18 qemu/hw/pxa2xx_dma.c 1.4 qemu/hw/pxa2xx_gpio.c 1.4 qemu/hw/pxa2xx_lcd.c 1.7 qemu/hw/pxa2xx_mmci.c 1.3 qemu/hw/pxa2xx_pcmcia.c 1.3 qemu/hw/pxa2xx_pic.c 1.3 qemu/hw/pxa2xx_template.h 1.2 qemu/hw/pxa2xx_timer.c 1.6 qemu/hw/r2d.c 1.2 qemu/hw/realview.c 1.11 qemu/hw/rtl8139.c 1.13 qemu/hw/sb16.c 1.23 qemu/hw/scsi-disk.c 1.15 qemu/hw/sd.c 1.3 qemu/hw/sd.h 1.3 qemu/hw/serial.c 1.20 qemu/hw/sh7750.c 1.8 qemu/hw/sh7750_regnames.c 1.3 qemu/hw/sh7750_regnames.h 1.1 qemu/hw/sh7750_regs.h 1.4 qemu/hw/sh_serial.c 1.1 qemu/hw/sh_timer.c 1.1 qemu/hw/shix.c 1.4 qemu/hw/slavio_intctl.c 1.21 qemu/hw/slavio_misc.c 1.9 qemu/hw/slavio_serial.c 1.24 qemu/hw/slavio_timer.c 1.15 qemu/hw/smbus.c 1.3 qemu/hw/smbus.h 1.4 qemu/hw/smbus_eeprom.c 1.4 qemu/hw/smc91c111.c 1.9 qemu/hw/sparc32_dma.c 1.9 qemu/hw/spitz.c 1.11 qemu/hw/sun4m.c 1.50 qemu/hw/sun4u.c 1.20 qemu/hw/tc58128.c 1.1 qemu/hw/tcx.c 1.23 qemu/hw/unin_pci.c 1.6 qemu/hw/usb-hid.c 1.14 qemu/hw/usb-hub.c 1.11 qemu/hw/usb-msd.c 1.11 qemu/hw/usb-ohci.c 1.8 qemu/hw/usb-uhci.c 1.19 qemu/hw/usb-wacom.c 1.2 qemu/hw/usb.c 1.11 qemu/hw/usb.h 1.18 qemu/hw/versatile_pci.c 1.6 qemu/hw/versatilepb.c 1.17 qemu/hw/vga.c 1.57 qemu/hw/vga_int.h 1.15 qemu/hw/vga_template.h 1.15 qemu/hw/vmmouse.c 1.4 qemu/hw/vmport.c 1.1 qemu/hw/vmware_vga.c 1.3 qemu/hw/wm8750.c 1.2 qemu/keymaps/ar 1.1 qemu/keymaps/common 1.2 qemu/keymaps/da 1.1 qemu/keymaps/de 1.1 qemu/keymaps/de-ch 1.2 qemu/keymaps/en-gb 1.1 qemu/keymaps/en-us 1.1 qemu/keymaps/es 1.1 qemu/keymaps/et 1.2 qemu/keymaps/fi 1.1 qemu/keymaps/fo 1.1 qemu/keymaps/fr 1.2 qemu/keymaps/fr-be 1.1 qemu/keymaps/fr-ca 1.1 qemu/keymaps/fr-ch 1.1 qemu/keymaps/hr 1.1 qemu/keymaps/hu 1.1 qemu/keymaps/is 1.2 qemu/keymaps/it 1.1 qemu/keymaps/ja 1.3 qemu/keymaps/lt 1.1 qemu/keymaps/lv 1.1 qemu/keymaps/mk 1.1 qemu/keymaps/modifiers 1.3 qemu/keymaps/nl 1.2 qemu/keymaps/nl-be 1.1 qemu/keymaps/no 1.1 qemu/keymaps/pl 1.1 qemu/keymaps/pt 1.1 qemu/keymaps/pt-br 1.1 qemu/keymaps/ru 1.1 qemu/keymaps/sl 1.1 qemu/keymaps/sv 1.2 qemu/keymaps/th 1.1 qemu/keymaps/tr 1.1 qemu/linux-user/elfload.c 1.48 qemu/linux-user/errno_defs.h 1.1 qemu/linux-user/flat.h 1.4 qemu/linux-user/flatload.c 1.7 qemu/linux-user/ioctls.h 1.9 qemu/linux-user/linuxload.c 1.5 qemu/linux-user/m68k-sim.c 1.2 qemu/linux-user/main.c 1.126 qemu/linux-user/mmap.c 1.16 qemu/linux-user/path.c 1.3 qemu/linux-user/qemu.h 1.37 qemu/linux-user/signal.c 1.44 qemu/linux-user/socket.h 1.1 qemu/linux-user/syscall.c 1.137 qemu/linux-user/syscall_defs.h 1.41 qemu/linux-user/syscall_types.h 1.8 qemu/linux-user/vm86.c 1.11 qemu/linux-user/alpha/syscall.h 1.2 qemu/linux-user/alpha/syscall_nr.h 1.4 qemu/linux-user/alpha/target_signal.h 1.2 qemu/linux-user/alpha/termbits.h 1.2 qemu/linux-user/arm/syscall.h 1.6 qemu/linux-user/arm/syscall_nr.h 1.4 qemu/linux-user/arm/target_signal.h 1.2 qemu/linux-user/arm/termbits.h 1.2 qemu/linux-user/i386/syscall.h 1.3 qemu/linux-user/i386/syscall_nr.h 1.5 qemu/linux-user/i386/target_signal.h 1.2 qemu/linux-user/i386/termbits.h 1.2 qemu/linux-user/m68k/syscall.h 1.1 qemu/linux-user/m68k/syscall_nr.h 1.2 qemu/linux-user/m68k/target_signal.h 1.1 qemu/linux-user/m68k/termbits.h 1.2 qemu/linux-user/mips/syscall.h 1.3 qemu/linux-user/mips/syscall_nr.h 1.5 qemu/linux-user/mips/target_signal.h 1.3 qemu/linux-user/mips/termbits.h 1.3 qemu/linux-user/mips64/syscall.h 1.1 qemu/linux-user/mips64/syscall_nr.h 1.1 qemu/linux-user/mips64/target_signal.h 1.1 qemu/linux-user/mips64/termbits.h 1.1 qemu/linux-user/mipsn32/syscall.h 1.1 qemu/linux-user/mipsn32/syscall_nr.h 1.1 qemu/linux-user/mipsn32/target_signal.h 1.1 qemu/linux-user/mipsn32/termbits.h 1.1 qemu/linux-user/ppc/syscall.h 1.4 qemu/linux-user/ppc/syscall_nr.h 1.2 qemu/linux-user/ppc/target_signal.h 1.2 qemu/linux-user/ppc/termbits.h 1.3 qemu/linux-user/ppc64/syscall.h 1.3 qemu/linux-user/ppc64/syscall_nr.h 1.2 qemu/linux-user/ppc64/target_signal.h 1.2 qemu/linux-user/ppc64/termbits.h 1.3 qemu/linux-user/sh4/syscall.h 1.1 qemu/linux-user/sh4/syscall_nr.h 1.2 qemu/linux-user/sh4/target_signal.h 1.1 qemu/linux-user/sh4/termbits.h 1.2 qemu/linux-user/sparc/syscall.h 1.2 qemu/linux-user/sparc/syscall_nr.h 1.4 qemu/linux-user/sparc/target_signal.h 1.2 qemu/linux-user/sparc/termbits.h 1.3 qemu/linux-user/sparc64/syscall.h 1.1 qemu/linux-user/sparc64/syscall_nr.h 1.2 qemu/linux-user/sparc64/target_signal.h 1.2 qemu/linux-user/sparc64/termbits.h 1.3 qemu/linux-user/x86_64/syscall.h 1.1 qemu/linux-user/x86_64/syscall_nr.h 1.3 qemu/linux-user/x86_64/target_signal.h 1.2 qemu/linux-user/x86_64/termbits.h 1.1 qemu/pc-bios/Makefile 1.2 qemu/pc-bios/README 1.16 qemu/pc-bios/bios.bin 1.20 qemu/pc-bios/bios.diff 1.18 qemu/pc-bios/ohw.diff 1.2 qemu/pc-bios/openbios-sparc32 1.10 qemu/pc-bios/openbios-sparc64 1.4 qemu/pc-bios/ppc_rom.bin 1.7 qemu/pc-bios/pxe-ne2k_pci.bin 1.1 qemu/pc-bios/pxe-pcnet.bin 1.1 qemu/pc-bios/pxe-rtl8139.bin 1.1 qemu/pc-bios/vgabios-cirrus.bin 1.8 qemu/pc-bios/vgabios.bin 1.8 qemu/pc-bios/vgabios.diff 1.5 qemu/pc-bios/video.x 1.1 qemu/slirp/COPYRIGHT 1.2 qemu/slirp/bootp.c 1.11 qemu/slirp/bootp.h 1.2 qemu/slirp/cksum.c 1.3 qemu/slirp/ctl.h 1.1 qemu/slirp/debug.c 1.3 qemu/slirp/debug.h 1.2 qemu/slirp/icmp_var.h 1.1 qemu/slirp/if.c 1.6 qemu/slirp/if.h 1.2 qemu/slirp/ip.h 1.2 qemu/slirp/ip_icmp.c 1.4 qemu/slirp/ip_icmp.h 1.2 qemu/slirp/ip_input.c 1.3 qemu/slirp/ip_output.c 1.3 qemu/slirp/libslirp.h 1.9 qemu/slirp/main.h 1.4 qemu/slirp/mbuf.c 1.4 qemu/slirp/mbuf.h 1.2 qemu/slirp/misc.c 1.9 qemu/slirp/misc.h 1.3 qemu/slirp/sbuf.c 1.4 qemu/slirp/sbuf.h 1.2 qemu/slirp/slirp.c 1.16 qemu/slirp/slirp.h 1.10 qemu/slirp/slirp_config.h 1.5 qemu/slirp/socket.c 1.10 qemu/slirp/socket.h 1.3 qemu/slirp/tcp.h 1.4 qemu/slirp/tcp_input.c 1.7 qemu/slirp/tcp_output.c 1.4 qemu/slirp/tcp_subr.c 1.9 qemu/slirp/tcp_timer.c 1.4 qemu/slirp/tcp_timer.h 1.1 qemu/slirp/tcp_var.h 1.1 qemu/slirp/tcpip.h 1.1 qemu/slirp/tftp.c 1.8 qemu/slirp/tftp.h 1.4 qemu/slirp/udp.c 1.11 qemu/slirp/udp.h 1.3 qemu/target-alpha/cpu.h 1.8 qemu/target-alpha/exec.h 1.3 qemu/target-alpha/helper.c 1.4 qemu/target-alpha/op.c 1.2 qemu/target-alpha/op_helper.c 1.2 qemu/target-alpha/op_helper.h 1.2 qemu/target-alpha/op_helper_mem.h 1.2 qemu/target-alpha/op_mem.h 1.2 qemu/target-alpha/op_template.h 1.2 qemu/target-alpha/translate.c 1.5 qemu/target-arm/cpu.h 1.34 qemu/target-arm/exec.h 1.13 qemu/target-arm/helper.c 1.21 qemu/target-arm/op.c 1.27 qemu/target-arm/op_helper.c 1.6 qemu/target-arm/op_iwmmxt.c 1.2 qemu/target-arm/op_mem.h 1.2 qemu/target-arm/op_template.h 1.3 qemu/target-arm/translate.c 1.57 qemu/target-arm/nwfpe/double_cpdo.c 1.6 qemu/target-arm/nwfpe/extended_cpdo.c 1.4 qemu/target-arm/nwfpe/fpa11.c 1.5 qemu/target-arm/nwfpe/fpa11.h 1.6 qemu/target-arm/nwfpe/fpa11.inl 1.2 qemu/target-arm/nwfpe/fpa11_cpdo.c 1.4 qemu/target-arm/nwfpe/fpa11_cpdt.c 1.6 qemu/target-arm/nwfpe/fpa11_cprt.c 1.6 qemu/target-arm/nwfpe/fpopcode.c 1.4 qemu/target-arm/nwfpe/fpopcode.h 1.3 qemu/target-arm/nwfpe/fpsr.h 1.2 qemu/target-arm/nwfpe/single_cpdo.c 1.5 qemu/target-i386/cpu.h 1.50 qemu/target-i386/exec.h 1.37 qemu/target-i386/helper.c 1.89 qemu/target-i386/helper2.c 1.52 qemu/target-i386/op.c 1.51 qemu/target-i386/opreg_template.h 1.4 qemu/target-i386/ops_mem.h 1.7 qemu/target-i386/ops_sse.h 1.9 qemu/target-i386/ops_template.h 1.12 qemu/target-i386/ops_template_mem.h 1.7 qemu/target-i386/svm.h 1.1 qemu/target-i386/translate-copy.c 1.9 qemu/target-i386/translate.c 1.72 qemu/target-m68k/cpu.h 1.13 qemu/target-m68k/exec.h 1.4 qemu/target-m68k/helper.c 1.7 qemu/target-m68k/m68k-qreg.h 1.1 qemu/target-m68k/op-hacks.h 1.3 qemu/target-m68k/op.c 1.13 qemu/target-m68k/op_helper.c 1.6 qemu/target-m68k/op_mem.h 1.1 qemu/target-m68k/qregs.def 1.3 qemu/target-m68k/translate.c 1.20 qemu/target-mips/TODO 1.15 qemu/target-mips/cpu.h 1.47 qemu/target-mips/exec.h 1.36 qemu/target-mips/fop_template.c 1.6 qemu/target-mips/helper.c 1.53 qemu/target-mips/mips-defs.h 1.17 qemu/target-mips/op.c 1.76 qemu/target-mips/op_helper.c 1.63 qemu/target-mips/op_helper_mem.c 1.9 qemu/target-mips/op_mem.c 1.13 qemu/target-mips/op_template.c 1.9 qemu/target-mips/translate.c 1.104 qemu/target-mips/translate_init.c 1.24 qemu/target-ppc/STATUS 1.4 qemu/target-ppc/cpu.h 1.68 qemu/target-ppc/exec.h 1.26 qemu/target-ppc/helper.c 1.63 qemu/target-ppc/mfrom_table.c 1.2 qemu/target-ppc/mfrom_table_gen.c 1.3 qemu/target-ppc/op.c 1.51 qemu/target-ppc/op_helper.c 1.47 qemu/target-ppc/op_helper.h 1.19 qemu/target-ppc/op_helper_mem.h 1.11 qemu/target-ppc/op_mem.h 1.18 qemu/target-ppc/op_template.h 1.10 qemu/target-ppc/translate.c 1.83 qemu/target-ppc/translate_init.c 1.36 qemu/target-sh4/README.sh4 1.4 qemu/target-sh4/cpu.h 1.10 qemu/target-sh4/exec.h 1.5 qemu/target-sh4/helper.c 1.4 qemu/target-sh4/op.c 1.8 qemu/target-sh4/op_helper.c 1.4 qemu/target-sh4/op_mem.c 1.3 qemu/target-sh4/translate.c 1.18 qemu/target-sparc/cpu.h 1.52 qemu/target-sparc/exec.h 1.21 qemu/target-sparc/fbranch_template.h 1.1 qemu/target-sparc/fop_template.h 1.4 qemu/target-sparc/helper.c 1.27 qemu/target-sparc/op.c 1.41 qemu/target-sparc/op_helper.c 1.40 qemu/target-sparc/op_mem.h 1.10 qemu/target-sparc/op_template.h 1.2 qemu/target-sparc/translate.c 1.72 qemu/tests/.cvsignore 1.4 qemu/tests/Makefile 1.41 qemu/tests/hello-arm.c 1.3 qemu/tests/hello-i386.c 1.1 qemu/tests/hello-mips.c 1.1 qemu/tests/linux-test.c 1.5 qemu/tests/pi_10.com 1.1 qemu/tests/qruncom.c 1.6 qemu/tests/runcom.c 1.5 qemu/tests/sha1.c 1.1 qemu/tests/test-arm-iwmmxt.s 1.1 qemu/tests/test-i386-code16.S 1.5 qemu/tests/test-i386-muldiv.h 1.3 qemu/tests/test-i386-shift.h 1.5 qemu/tests/test-i386-vm86.S 1.3 qemu/tests/test-i386.c 1.55 qemu/tests/test-i386.h 1.2 qemu/tests/test_path.c 1.2 qemu/tests/testthread.c 1.2
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile3
-rw-r--r--tests/hello-arm.c2
-rw-r--r--tests/linux-test.c36
-rw-r--r--tests/qruncom.c30
-rw-r--r--tests/runcom.c10
-rw-r--r--tests/test-arm-iwmmxt.s49
-rw-r--r--tests/test-i386-code16.S10
-rw-r--r--tests/test-i386-muldiv.h16
-rw-r--r--tests/test-i386-vm86.S25
-rw-r--r--tests/test-i386.c124
-rw-r--r--tests/test_path.c2
11 files changed, 179 insertions, 128 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 79a3d55b5..ec3a93ce6 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -82,6 +82,9 @@ hello-arm: hello-arm.o
hello-arm.o: hello-arm.c
arm-linux-gcc -Wall -g -O2 -c -o $@ $<
+test-arm-iwmmxt: test-arm-iwmmxt.s
+ cpp < $< | arm-linux-gnu-gcc -Wall -static -march=iwmmxt -mabi=aapcs -x assembler - -o $@
+
# MIPS test
hello-mips: hello-mips.c
mips-linux-gnu-gcc -nostdlib -static -mno-abicalls -fno-PIC -mabi=32 -Wall -Wextra -g -O2 -o $@ $<
diff --git a/tests/hello-arm.c b/tests/hello-arm.c
index f84e6cb36..e0daa7ad9 100644
--- a/tests/hello-arm.c
+++ b/tests/hello-arm.c
@@ -83,7 +83,7 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4) { \
: "r0","r1","r2","r3","lr"); \
__syscall_return(type,__res); \
}
-
+
#define _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5) \
type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) { \
diff --git a/tests/linux-test.c b/tests/linux-test.c
index 6ca902965..2f82defe0 100644
--- a/tests/linux-test.c
+++ b/tests/linux-test.c
@@ -1,6 +1,6 @@
/*
* linux and CPU test
- *
+ *
* Copyright (c) 2003 Fabrice Bellard
*
* This program is free software; you can redistribute it and/or modify
@@ -58,7 +58,7 @@ void error1(const char *filename, int line, const char *fmt, ...)
int __chk_error(const char *filename, int line, int ret)
{
if (ret < 0) {
- error1(filename, line, "%m (ret=%d, errno=%d)",
+ error1(filename, line, "%m (ret=%d, errno=%d)",
ret, errno);
}
return ret;
@@ -93,11 +93,11 @@ void test_file(void)
if (getcwd(cur_dir, sizeof(cur_dir)) == NULL)
error("getcwd");
-
+
chk_error(mkdir(TESTPATH, 0755));
-
+
chk_error(chdir(TESTPATH));
-
+
/* open/read/write/close/readv/writev/lseek */
fd = chk_error(open("file1", O_WRONLY | O_TRUNC | O_CREAT, 0644));
@@ -124,7 +124,7 @@ void test_file(void)
error("read");
if (memcmp(buf, buf2, FILE_BUF_SIZE) != 0)
error("memcmp");
-
+
#define FOFFSET 16
ret = chk_error(lseek(fd, FOFFSET, SEEK_SET));
if (ret != 16)
@@ -138,7 +138,7 @@ void test_file(void)
error("readv");
if (memcmp(buf + FOFFSET, buf3, FILE_BUF_SIZE - FOFFSET) != 0)
error("memcmp");
-
+
chk_error(close(fd));
/* access */
@@ -171,18 +171,18 @@ void test_file(void)
chk_error(ftruncate(fd, 50));
chk_error(fstat(fd, &st));
chk_error(close(fd));
-
+
if (st.st_size != 50)
error("stat size");
if (!S_ISREG(st.st_mode))
error("stat mode");
-
+
/* symlink/lstat */
chk_error(symlink("file2", "file3"));
chk_error(lstat("file3", &st));
if (!S_ISLNK(st.st_mode))
error("stat mode");
-
+
/* getdents */
dir = opendir(TESTPATH);
if (!dir)
@@ -241,7 +241,7 @@ void test_time(void)
ti = tv2.tv_sec - tv.tv_sec;
if (ti >= 2)
error("gettimeofday");
-
+
chk_error(getrusage(RUSAGE_SELF, &rusg1));
for(i = 0;i < 10000; i++);
chk_error(getrusage(RUSAGE_SELF, &rusg2));
@@ -272,7 +272,7 @@ char *pstrcat(char *buf, int buf_size, const char *s)
{
int len;
len = strlen(buf);
- if (len < buf_size)
+ if (len < buf_size)
pstrcpy(buf + len, buf_size - len, s);
return buf;
}
@@ -327,7 +327,7 @@ void test_socket(void)
chk_error(getsockopt(server_fd, SOL_SOCKET, SO_TYPE, &val, &len));
if (val != SOCK_STREAM)
error("getsockopt");
-
+
pid = chk_error(fork());
if (pid == 0) {
client_fd = client_socket();
@@ -419,11 +419,11 @@ void test_clone(void)
int pid1, pid2, status1, status2;
stack1 = malloc(STACK_SIZE);
- pid1 = chk_error(clone(thread1_func, stack1 + STACK_SIZE,
+ pid1 = chk_error(clone(thread1_func, stack1 + STACK_SIZE,
CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD, "hello1"));
stack2 = malloc(STACK_SIZE);
- pid2 = chk_error(clone(thread2_func, stack2 + STACK_SIZE,
+ pid2 = chk_error(clone(thread2_func, stack2 + STACK_SIZE,
CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD, "hello2"));
while (waitpid(pid1, &status1, 0) != pid1);
@@ -465,7 +465,7 @@ void test_signal(void)
sigemptyset(&act.sa_mask);
act.sa_flags = 0;
chk_error(sigaction(SIGALRM, &act, NULL));
-
+
it.it_interval.tv_sec = 0;
it.it_interval.tv_usec = 10 * 1000;
it.it_value.tv_sec = 0;
@@ -475,7 +475,7 @@ void test_signal(void)
if (oit.it_value.tv_sec != it.it_value.tv_sec ||
oit.it_value.tv_usec != it.it_value.tv_usec)
error("itimer");
-
+
while (alarm_count < 5) {
usleep(10 * 1000);
}
@@ -498,7 +498,7 @@ void test_signal(void)
if (setjmp(jmp_env) == 0) {
*(uint8_t *)0 = 0;
}
-
+
act.sa_handler = SIG_DFL;
sigemptyset(&act.sa_mask);
act.sa_flags = 0;
diff --git a/tests/qruncom.c b/tests/qruncom.c
index 421e6a99f..ad0d938ee 100644
--- a/tests/qruncom.c
+++ b/tests/qruncom.c
@@ -59,7 +59,7 @@ uint64_t cpu_get_tsc(CPUState *env)
return 0;
}
-static void set_gate(void *ptr, unsigned int type, unsigned int dpl,
+static void set_gate(void *ptr, unsigned int type, unsigned int dpl,
unsigned long addr, unsigned int sel)
{
unsigned int e1, e2;
@@ -141,7 +141,7 @@ static inline void pushw(CPUState *env, int val)
*(uint16_t *)seg_to_linear(env->segs[R_SS].selector, env->regs[R_ESP]) = val;
}
-static void host_segv_handler(int host_signum, siginfo_t *info,
+static void host_segv_handler(int host_signum, siginfo_t *info,
void *puc)
{
if (cpu_signal_handler(host_signum, info, puc)) {
@@ -160,9 +160,9 @@ int main(int argc, char **argv)
if (argc != 2)
usage();
filename = argv[1];
-
- vm86_mem = mmap((void *)0x00000000, 0x110000,
- PROT_WRITE | PROT_READ | PROT_EXEC,
+
+ vm86_mem = mmap((void *)0x00000000, 0x110000,
+ PROT_WRITE | PROT_READ | PROT_EXEC,
MAP_FIXED | MAP_ANON | MAP_PRIVATE, -1, 0);
if (vm86_mem == MAP_FAILED) {
perror("mmap");
@@ -185,7 +185,7 @@ int main(int argc, char **argv)
/* install exception handler for CPU emulator */
{
struct sigaction act;
-
+
sigfillset(&act.sa_mask);
act.sa_flags = SA_SIGINFO;
// act.sa_flags |= SA_ONSTACK;
@@ -218,23 +218,23 @@ int main(int argc, char **argv)
/* flags setup : we activate the IRQs by default as in user
mode. We also activate the VM86 flag to run DOS code */
env->eflags |= IF_MASK | VM_MASK;
-
+
/* init basic registers */
env->eip = 0x100;
env->regs[R_ESP] = 0xfffe;
seg = (COM_BASE_ADDR - 0x100) >> 4;
- cpu_x86_load_seg_cache(env, R_CS, seg,
+ cpu_x86_load_seg_cache(env, R_CS, seg,
(seg << 4), 0xffff, 0);
- cpu_x86_load_seg_cache(env, R_SS, seg,
+ cpu_x86_load_seg_cache(env, R_SS, seg,
(seg << 4), 0xffff, 0);
- cpu_x86_load_seg_cache(env, R_DS, seg,
+ cpu_x86_load_seg_cache(env, R_DS, seg,
(seg << 4), 0xffff, 0);
- cpu_x86_load_seg_cache(env, R_ES, seg,
+ cpu_x86_load_seg_cache(env, R_ES, seg,
(seg << 4), 0xffff, 0);
- cpu_x86_load_seg_cache(env, R_FS, seg,
+ cpu_x86_load_seg_cache(env, R_FS, seg,
(seg << 4), 0xffff, 0);
- cpu_x86_load_seg_cache(env, R_GS, seg,
+ cpu_x86_load_seg_cache(env, R_GS, seg,
(seg << 4), 0xffff, 0);
/* exception support */
@@ -260,7 +260,7 @@ int main(int argc, char **argv)
set_idt(17, 0);
set_idt(18, 0);
set_idt(19, 0);
-
+
/* put return code */
*seg_to_linear(env->segs[R_CS].selector, 0) = 0xb4; /* mov ah, $0 */
*seg_to_linear(env->segs[R_CS].selector, 1) = 0x00;
@@ -275,7 +275,7 @@ int main(int argc, char **argv)
env->regs[R_EDI] = 0xfffe;
/* inform the emulator of the mmaped memory */
- page_set_flags(0x00000000, 0x110000,
+ page_set_flags(0x00000000, 0x110000,
PAGE_WRITE | PAGE_READ | PAGE_EXEC | PAGE_VALID);
for(;;) {
diff --git a/tests/runcom.c b/tests/runcom.c
index 43deeca09..cbbaf313b 100644
--- a/tests/runcom.c
+++ b/tests/runcom.c
@@ -51,7 +51,7 @@ static inline void pushw(struct vm86_regs *r, int val)
void dump_regs(struct vm86_regs *r)
{
- fprintf(stderr,
+ fprintf(stderr,
"EAX=%08lx EBX=%08lx ECX=%08lx EDX=%08lx\n"
"ESI=%08lx EDI=%08lx EBP=%08lx ESP=%08lx\n"
"EIP=%08lx EFL=%08lx\n"
@@ -80,9 +80,9 @@ int main(int argc, char **argv)
if (argc != 2)
usage();
filename = argv[1];
-
- vm86_mem = mmap((void *)0x00000000, 0x110000,
- PROT_WRITE | PROT_READ | PROT_EXEC,
+
+ vm86_mem = mmap((void *)0x00000000, 0x110000,
+ PROT_WRITE | PROT_READ | PROT_EXEC,
MAP_FIXED | MAP_ANON | MAP_PRIVATE, -1, 0);
if (vm86_mem == MAP_FAILED) {
perror("mmap");
@@ -147,7 +147,7 @@ int main(int argc, char **argv)
case VM86_INTx:
{
int int_num, ah;
-
+
int_num = VM86_ARG(ret);
if (int_num != 0x21)
goto unknown_int;
diff --git a/tests/test-arm-iwmmxt.s b/tests/test-arm-iwmmxt.s
new file mode 100644
index 000000000..d647f9404
--- /dev/null
+++ b/tests/test-arm-iwmmxt.s
@@ -0,0 +1,49 @@
+@ Checks whether iwMMXt is functional.
+.code 32
+.globl main
+
+main:
+ldr r0, =data0
+ldr r1, =data1
+ldr r2, =data2
+#ifndef FPA
+wldrd wr0, [r0, #0]
+wldrd wr1, [r0, #8]
+wldrd wr2, [r1, #0]
+wldrd wr3, [r1, #8]
+wsubb wr2, wr2, wr0
+wsubb wr3, wr3, wr1
+wldrd wr0, [r2, #0]
+wldrd wr1, [r2, #8]
+waddb wr0, wr0, wr2
+waddb wr1, wr1, wr3
+wstrd wr0, [r2, #0]
+wstrd wr1, [r2, #8]
+#else
+ldfe f0, [r0, #0]
+ldfe f1, [r0, #8]
+ldfe f2, [r1, #0]
+ldfe f3, [r1, #8]
+adfdp f2, f2, f0
+adfdp f3, f3, f1
+ldfe f0, [r2, #0]
+ldfe f1, [r2, #8]
+adfd f0, f0, f2
+adfd f1, f1, f3
+stfe f0, [r2, #0]
+stfe f1, [r2, #8]
+#endif
+mov r0, #1
+mov r1, r2
+mov r2, #0x11
+swi #0x900004
+mov r0, #0
+swi #0x900001
+
+.data
+data0:
+.string "aaaabbbbccccdddd"
+data1:
+.string "bbbbccccddddeeee"
+data2:
+.string "hvLLWs\x1fsdrs9\x1fNJ-\n"
diff --git a/tests/test-i386-code16.S b/tests/test-i386-code16.S
index e400e73fd..8f51052ce 100644
--- a/tests/test-i386-code16.S
+++ b/tests/test-i386-code16.S
@@ -7,7 +7,7 @@ CS_SEG = 0xf
code16_start:
.globl code16_func1
-
+
/* basic test */
code16_func1 = . - code16_start
mov $1, %eax
@@ -24,7 +24,7 @@ code16_func2 = . - code16_start
pop %ax
data32 lret
-/* test various jmp opcodes */
+/* test various jmp opcodes */
.globl code16_func3
code16_func3 = . - code16_start
jmp 1f
@@ -36,9 +36,9 @@ code16_func3 = . - code16_start
jz 2f
add $2, %ax
2:
-
+
call myfunc
-
+
lcall $CS_SEG, $(myfunc2 - code16_start)
ljmp $CS_SEG, $(myjmp1 - code16_start)
@@ -50,7 +50,7 @@ myjmp1_next:
myjmp2_next:
data32 lret
-
+
myfunc2_addr:
.short myfunc2 - code16_start
.short CS_SEG
diff --git a/tests/test-i386-muldiv.h b/tests/test-i386-muldiv.h
index fd0d99134..015f59e15 100644
--- a/tests/test-i386-muldiv.h
+++ b/tests/test-i386-muldiv.h
@@ -1,5 +1,5 @@
-void glue(glue(test_, OP), b)(long op0, long op1)
+void glue(glue(test_, OP), b)(long op0, long op1)
{
long res, s1, s0, flags;
s0 = op0;
@@ -8,7 +8,7 @@ void glue(glue(test_, OP), b)(long op0, long op1)
flags = 0;
asm ("push %4\n\t"
"popf\n\t"
- stringify(OP)"b %b2\n\t"
+ stringify(OP)"b %b2\n\t"
"pushf\n\t"
"pop %1\n\t"
: "=a" (res), "=g" (flags)
@@ -17,7 +17,7 @@ void glue(glue(test_, OP), b)(long op0, long op1)
stringify(OP) "b", s0, s1, res, flags & CC_MASK);
}
-void glue(glue(test_, OP), w)(long op0h, long op0, long op1)
+void glue(glue(test_, OP), w)(long op0h, long op0, long op1)
{
long res, s1, flags, resh;
s1 = op1;
@@ -26,7 +26,7 @@ void glue(glue(test_, OP), w)(long op0h, long op0, long op1)
flags = 0;
asm ("push %5\n\t"
"popf\n\t"
- stringify(OP) "w %w3\n\t"
+ stringify(OP) "w %w3\n\t"
"pushf\n\t"
"pop %1\n\t"
: "=a" (res), "=g" (flags), "=d" (resh)
@@ -35,7 +35,7 @@ void glue(glue(test_, OP), w)(long op0h, long op0, long op1)
stringify(OP) "w", op0h, op0, s1, resh, res, flags & CC_MASK);
}
-void glue(glue(test_, OP), l)(long op0h, long op0, long op1)
+void glue(glue(test_, OP), l)(long op0h, long op0, long op1)
{
long res, s1, flags, resh;
s1 = op1;
@@ -44,7 +44,7 @@ void glue(glue(test_, OP), l)(long op0h, long op0, long op1)
flags = 0;
asm ("push %5\n\t"
"popf\n\t"
- stringify(OP) "l %k3\n\t"
+ stringify(OP) "l %k3\n\t"
"pushf\n\t"
"pop %1\n\t"
: "=a" (res), "=g" (flags), "=d" (resh)
@@ -54,7 +54,7 @@ void glue(glue(test_, OP), l)(long op0h, long op0, long op1)
}
#if defined(__x86_64__)
-void glue(glue(test_, OP), q)(long op0h, long op0, long op1)
+void glue(glue(test_, OP), q)(long op0h, long op0, long op1)
{
long res, s1, flags, resh;
s1 = op1;
@@ -63,7 +63,7 @@ void glue(glue(test_, OP), q)(long op0h, long op0, long op1)
flags = 0;
asm ("push %5\n\t"
"popf\n\t"
- stringify(OP) "q %3\n\t"
+ stringify(OP) "q %3\n\t"
"pushf\n\t"
"pop %1\n\t"
: "=a" (res), "=g" (flags), "=d" (resh)
diff --git a/tests/test-i386-vm86.S b/tests/test-i386-vm86.S
index a972f1b81..3bb96c992 100644
--- a/tests/test-i386-vm86.S
+++ b/tests/test-i386-vm86.S
@@ -14,7 +14,7 @@ vm86_code_start:
movw %ax, %es
es movw $GET_OFFSET(int90_test), 0x90 * 4
es movw %cs, 0x90 * 4 + 2
-
+
/* launch int 0x90 */
int $0x90
@@ -24,23 +24,23 @@ vm86_code_start:
movb $0x09, %ah
int $0x21
- pushf
+ pushf
popw %dx
movb $0xff, %ah
int $0x21
cli
- pushf
+ pushf
popw %dx
movb $0xff, %ah
int $0x21
- sti
- pushfl
+ sti
+ pushfl
popl %edx
movb $0xff, %ah
int $0x21
-
+
#if 0
movw $GET_OFFSET(IF_msg1), %dx
movb $0x09, %ah
@@ -54,11 +54,11 @@ vm86_code_start:
cli
#endif
- pushf
+ pushf
popw %dx
movb $0xff, %ah
int $0x21
-
+
pushfl
movw %sp, %bx
orw $0x200, (%bx)
@@ -73,7 +73,7 @@ vm86_code_start:
int $0x21
int90_test:
- pushf
+ pushf
pop %dx
movb $0xff, %ah
int $0x21
@@ -82,15 +82,15 @@ int90_test:
movw 4(%bx), %dx
movb $0xff, %ah
int $0x21
-
+
movw $GET_OFFSET(int90_msg), %dx
movb $0x09, %ah
int $0x21
iret
-
+
int90_msg:
.string "INT90 started\n$"
-
+
hello_world:
.string "Hello VM86 world\n$"
@@ -101,4 +101,3 @@ IF_msg1:
.string "If you see a diff here, your Linux kernel is buggy, please update to 2.4.20 kernel\n$"
vm86_code_end:
- \ No newline at end of file
diff --git a/tests/test-i386.c b/tests/test-i386.c
index 267391575..2d4b0a0df 100644
--- a/tests/test-i386.c
+++ b/tests/test-i386.c
@@ -1,6 +1,6 @@
/*
* x86 CPU test
- *
+ *
* Copyright (c) 2003 Fabrice Bellard
*
* This program is free software; you can redistribute it and/or modify
@@ -470,7 +470,7 @@ void test_jcc(void)
#define OP imul
#include "test-i386-muldiv.h"
-void test_imulw2(long op0, long op1)
+void test_imulw2(long op0, long op1)
{
long res, s1, s0, flags;
s0 = op0;
@@ -479,7 +479,7 @@ void test_imulw2(long op0, long op1)
flags = 0;
asm volatile ("push %4\n\t"
"popf\n\t"
- "imulw %w2, %w0\n\t"
+ "imulw %w2, %w0\n\t"
"pushf\n\t"
"pop %1\n\t"
: "=q" (res), "=g" (flags)
@@ -488,7 +488,7 @@ void test_imulw2(long op0, long op1)
"imulw", s0, s1, res, flags & CC_MASK);
}
-void test_imull2(long op0, long op1)
+void test_imull2(long op0, long op1)
{
long res, s1, s0, flags;
s0 = op0;
@@ -497,7 +497,7 @@ void test_imull2(long op0, long op1)
flags = 0;
asm volatile ("push %4\n\t"
"popf\n\t"
- "imull %k2, %k0\n\t"
+ "imull %k2, %k0\n\t"
"pushf\n\t"
"pop %1\n\t"
: "=q" (res), "=g" (flags)
@@ -507,7 +507,7 @@ void test_imull2(long op0, long op1)
}
#if defined(__x86_64__)
-void test_imulq2(long op0, long op1)
+void test_imulq2(long op0, long op1)
{
long res, s1, s0, flags;
s0 = op0;
@@ -516,7 +516,7 @@ void test_imulq2(long op0, long op1)
flags = 0;
asm volatile ("push %4\n\t"
"popf\n\t"
- "imulq %2, %0\n\t"
+ "imulq %2, %0\n\t"
"pushf\n\t"
"pop %1\n\t"
: "=q" (res), "=g" (flags)
@@ -739,7 +739,7 @@ void fpu_clear_exceptions(void)
uint32_t ignored[4];
long double fpregs[8];
} float_env32;
-
+
asm volatile ("fnstenv %0\n" : : "m" (float_env32));
float_env32.fpus &= ~0x7f;
asm volatile ("fldenv %0\n" : : "m" (float_env32));
@@ -758,14 +758,14 @@ void test_fcmp(double a, double b)
"fstsw %%ax\n"
: "=a" (fpus)
: "t" (a), "u" (b));
- printf("fcom(%f %f)=%04lx \n",
+ printf("fcom(%f %f)=%04lx \n",
a, b, fpus & (0x4500 | FPUS_EMASK));
fpu_clear_exceptions();
asm("fucom %2\n"
"fstsw %%ax\n"
: "=a" (fpus)
: "t" (a), "u" (b));
- printf("fucom(%f %f)=%04lx\n",
+ printf("fucom(%f %f)=%04lx\n",
a, b, fpus & (0x4500 | FPUS_EMASK));
if (TEST_FCOMI) {
/* test f(u)comi instruction */
@@ -776,7 +776,7 @@ void test_fcmp(double a, double b)
"pop %0\n"
: "=r" (eflags), "=a" (fpus)
: "t" (a), "u" (b));
- printf("fcomi(%f %f)=%04lx %02lx\n",
+ printf("fcomi(%f %f)=%04lx %02lx\n",
a, b, fpus & FPUS_EMASK, eflags & (CC_Z | CC_P | CC_C));
fpu_clear_exceptions();
asm("fucomi %3, %2\n"
@@ -785,7 +785,7 @@ void test_fcmp(double a, double b)
"pop %0\n"
: "=r" (eflags), "=a" (fpus)
: "t" (a), "u" (b));
- printf("fucomi(%f %f)=%04lx %02lx\n",
+ printf("fucomi(%f %f)=%04lx %02lx\n",
a, b, fpus & FPUS_EMASK, eflags & (CC_Z | CC_P | CC_C));
}
fpu_clear_exceptions();
@@ -813,7 +813,7 @@ void test_fcvt(double a)
printf("(float)%f = %f\n", a, fa);
printf("(long double)%f = %Lf\n", a, la);
printf("a=" FMT64X "\n", *(uint64_t *)&a);
- printf("la=" FMT64X " %04x\n", *(uint64_t *)&la,
+ printf("la=" FMT64X " %04x\n", *(uint64_t *)&la,
*(unsigned short *)((char *)(&la) + 8));
/* test all roundings */
@@ -855,7 +855,7 @@ void test_fbcd(double a)
asm("fbstp %0" : "=m" (bcd[0]) : "t" (a) : "st");
asm("fbld %1" : "=t" (b) : "m" (bcd[0]));
- printf("a=%f bcd=%04x%04x%04x%04x%04x b=%f\n",
+ printf("a=%f bcd=%04x%04x%04x%04x%04x b=%f\n",
a, bcd[4], bcd[3], bcd[2], bcd[1], bcd[0], b);
}
@@ -1041,7 +1041,7 @@ void test_bcd(void)
TEST_BCD(aaa, 0x12340306, 0, (CC_C | CC_A));
TEST_BCD(aaa, 0x1234040a, 0, (CC_C | CC_A));
TEST_BCD(aaa, 0x123405fa, 0, (CC_C | CC_A));
-
+
TEST_BCD(aas, 0x12340205, CC_A, (CC_C | CC_A));
TEST_BCD(aas, 0x12340306, CC_A, (CC_C | CC_A));
TEST_BCD(aas, 0x1234040a, CC_A, (CC_C | CC_A));
@@ -1157,12 +1157,12 @@ void test_xchg(void)
else
op1 = op0;
op2 = 0x6532432432434;
- asm("cmpxchg8b %1\n"
+ asm("cmpxchg8b %1\n"
"pushf\n"
"pop %2\n"
: "=A" (op0), "=m" (op1), "=g" (eflags)
: "0" (op0), "m" (op1), "b" ((int)op2), "c" ((int)(op2 >> 32)));
- printf("cmpxchg8b: op0=" FMT64X " op1=" FMT64X " CC=%02lx\n",
+ printf("cmpxchg8b: op0=" FMT64X " op1=" FMT64X " CC=%02lx\n",
op0, op1, eflags & CC_Z);
}
}
@@ -1276,9 +1276,9 @@ void test_segs(void)
segoff.seg = MK_SEL(2);
segoff.offset = 0xabcdef12;
- asm volatile("lfs %2, %0\n\t"
+ asm volatile("lfs %2, %0\n\t"
"movl %%fs, %1\n\t"
- : "=r" (res), "=g" (res2)
+ : "=r" (res), "=g" (res2)
: "m" (segoff));
printf("FS:reg = %04x:%08x\n", res2, res);
@@ -1317,15 +1317,15 @@ void test_code16(void)
modify_ldt(1, &ldt, sizeof(ldt)); /* write ldt entry */
/* call the first function */
- asm volatile ("lcall %1, %2"
+ asm volatile ("lcall %1, %2"
: "=a" (res)
: "i" (MK_SEL(1)), "i" (&code16_func1): "memory", "cc");
printf("func1() = 0x%08x\n", res);
- asm volatile ("lcall %2, %3"
+ asm volatile ("lcall %2, %3"
: "=a" (res), "=c" (res2)
: "i" (MK_SEL(1)), "i" (&code16_func2): "memory", "cc");
printf("func2() = 0x%08x spdec=%d\n", res, res2);
- asm volatile ("lcall %1, %2"
+ asm volatile ("lcall %1, %2"
: "=a" (res)
: "i" (MK_SEL(1)), "i" (&code16_func3): "memory", "cc");
printf("func3() = 0x%08x\n", res);
@@ -1373,7 +1373,7 @@ void test_misc(void)
asm volatile ("mov %%cs, %0" : "=r" (cs_sel));
asm volatile ("push %1\n"
- "call func_lret\n"
+ "call func_lret\n"
: "=a" (res)
: "r" (cs_sel) : "memory", "cc");
printf("func_lret=" FMTLX "\n", res);
@@ -1381,11 +1381,11 @@ void test_misc(void)
/* NOTE: we assume that &func_lret < 4GB */
desc.offset = (long)&func_lret;
desc.seg = cs_sel;
-
+
asm volatile ("xor %%rax, %%rax\n"
"rex64 lcall %1\n"
: "=a" (res)
- : "m" (desc)
+ : "m" (desc)
: "memory", "cc");
printf("func_lret2=" FMTLX "\n", res);
@@ -1400,12 +1400,12 @@ void test_misc(void)
printf("func_lret3=" FMTLX "\n", res);
}
#else
- asm volatile ("push %%cs ; call %1"
+ asm volatile ("push %%cs ; call %1"
: "=a" (res)
: "m" (func_lret): "memory", "cc");
printf("func_lret=" FMTLX "\n", res);
- asm volatile ("pushf ; push %%cs ; call %1"
+ asm volatile ("pushf ; push %%cs ; call %1"
: "=a" (res)
: "m" (func_iret): "memory", "cc");
printf("func_iret=" FMTLX "\n", res);
@@ -1472,7 +1472,7 @@ void test_string(void)
TEST_STRING(stos, "");
TEST_STRING(stos, "rep ");
TEST_STRING(lods, ""); /* to verify stos */
- TEST_STRING(lods, "rep ");
+ TEST_STRING(lods, "rep ");
TEST_STRING(movs, "");
TEST_STRING(movs, "rep ");
TEST_STRING(lods, ""); /* to verify stos */
@@ -1526,8 +1526,8 @@ void test_vm86(void)
uint8_t *vm86_mem;
int seg, ret;
- vm86_mem = mmap((void *)0x00000000, 0x110000,
- PROT_WRITE | PROT_READ | PROT_EXEC,
+ vm86_mem = mmap((void *)0x00000000, 0x110000,
+ PROT_WRITE | PROT_READ | PROT_EXEC,
MAP_FIXED | MAP_ANON | MAP_PRIVATE, -1, 0);
if (vm86_mem == MAP_FAILED) {
printf("ERROR: could not map vm86 memory");
@@ -1550,7 +1550,7 @@ void test_vm86(void)
/* move code to proper address. We use the same layout as a .com
dos program. */
- memcpy(vm86_mem + (VM86_CODE_CS << 4) + VM86_CODE_IP,
+ memcpy(vm86_mem + (VM86_CODE_CS << 4) + VM86_CODE_IP,
&vm86_code_start, &vm86_code_end - &vm86_code_start);
/* mark int 0x21 as being emulated */
@@ -1562,7 +1562,7 @@ void test_vm86(void)
case VM86_INTx:
{
int int_num, ah, v;
-
+
int_num = VM86_ARG(ret);
if (int_num != 0x21)
goto unknown_int;
@@ -1665,7 +1665,7 @@ void test_exceptions(void)
{
struct sigaction act;
volatile int val;
-
+
act.sa_sigaction = sig_handler;
sigemptyset(&act.sa_mask);
act.sa_flags = SA_SIGINFO | SA_NODEFER;
@@ -1718,7 +1718,7 @@ void test_exceptions(void)
ldt.seg_not_present = 1;
ldt.useable = 1;
modify_ldt(1, &ldt, sizeof(ldt)); /* write ldt entry */
-
+
if (setjmp(jmp_env) == 0) {
/* segment not present */
asm volatile ("movl %0, %%fs" : : "r" (MK_SEL(1)));
@@ -1743,7 +1743,7 @@ void test_exceptions(void)
/* read from an invalid address */
v1 = *(char *)0x1234;
}
-
+
/* test illegal instruction reporting */
printf("UD2 exception:\n");
if (setjmp(jmp_env) == 0) {
@@ -1755,7 +1755,7 @@ void test_exceptions(void)
/* now execute an invalid instruction */
asm volatile("lock nop");
}
-
+
printf("INT exception:\n");
if (setjmp(jmp_env) == 0) {
asm volatile ("int $0xfd");
@@ -1827,7 +1827,7 @@ void test_exceptions(void)
asm volatile ("pushf\n"
"orl $0x00100, (%%esp)\n"
"popf\n"
- "movl $0xabcd, %0\n"
+ "movl $0xabcd, %0\n"
"movl $0x0, %0\n" : "=m" (val) : : "cc", "memory");
}
printf("val=0x%x\n", val);
@@ -1858,7 +1858,7 @@ void test_single_step(void)
asm volatile ("pushf\n"
"orl $0x00100, (%%esp)\n"
"popf\n"
- "movl $0xabcd, %0\n"
+ "movl $0xabcd, %0\n"
/* jmp test */
"movl $3, %%ecx\n"
@@ -1884,13 +1884,13 @@ void test_single_step(void)
"rep cmpsb\n"
"movl $4, %%ecx\n"
"rep cmpsb\n"
-
+
/* getpid() syscall: single step should skip one
instruction */
"movl $20, %%eax\n"
"int $0x80\n"
"movl $0, %%eax\n"
-
+
/* when modifying SS, trace is not done on the next
instruction */
"movl %%ss, %%ecx\n"
@@ -1906,12 +1906,12 @@ void test_single_step(void)
"popl %%ss\n"
"addl $1, %0\n"
"movl $1, %%eax\n"
-
+
"pushf\n"
"andl $~0x00100, (%%esp)\n"
"popf\n"
- : "=m" (val)
- :
+ : "=m" (val)
+ :
: "cc", "memory", "eax", "ecx", "esi", "edi");
printf("val=%d\n", val);
for(i = 0; i < 4; i++)
@@ -2282,14 +2282,14 @@ void test_fxsave(void)
" fxrstor %0\n"
" fxsave %1\n"
" fninit\n"
- : "=m" (*(uint32_t *)fp2), "=m" (*(uint32_t *)fp)
+ : "=m" (*(uint32_t *)fp2), "=m" (*(uint32_t *)fp)
: "m" (a), "m" (b));
printf("fpuc=%04x\n", fp->fpuc);
printf("fpus=%04x\n", fp->fpus);
printf("fptag=%04x\n", fp->fptag);
for(i = 0; i < 3; i++) {
printf("ST%d: " FMT64X " %04x\n",
- i,
+ i,
*(uint64_t *)&fp->fpregs1[i * 16],
*(uint16_t *)&fp->fpregs1[i * 16 + 8]);
}
@@ -2301,7 +2301,7 @@ void test_fxsave(void)
#endif
for(i = 0; i < nb_xmm; i++) {
printf("xmm%d: " FMT64X "" FMT64X "\n",
- i,
+ i,
*(uint64_t *)&fp->xmm_regs[i * 16],
*(uint64_t *)&fp->xmm_regs[i * 16 + 8]);
}
@@ -2341,7 +2341,7 @@ void test_sse(void)
MMX_OP2(pmulhuw);
MMX_OP2(pmulhw);
-
+
MMX_OP2(psubsb);
MMX_OP2(psubsw);
MMX_OP2(pminsw);
@@ -2380,7 +2380,7 @@ void test_sse(void)
asm volatile ("pmovmskb %1, %0" : "=r" (r.l[0]) : "y" (a.q[0]));
printf("%-9s: r=%08x\n", "pmovmskb", r.l[0]);
-
+
asm volatile ("pmovmskb %1, %0" : "=r" (r.l[0]) : "x" (a.dq));
printf("%-9s: r=%08x\n", "pmovmskb", r.l[0]);
@@ -2392,21 +2392,21 @@ void test_sse(void)
a.q[1] = test_values[0][1];
b.q[0] = test_values[1][0];
b.q[1] = test_values[1][1];
- asm volatile("maskmovq %1, %0" :
+ asm volatile("maskmovq %1, %0" :
: "y" (a.q[0]), "y" (b.q[0]), "D" (&r)
- : "memory");
- printf("%-9s: r=" FMT64X " a=" FMT64X " b=" FMT64X "\n",
- "maskmov",
- r.q[0],
- a.q[0],
+ : "memory");
+ printf("%-9s: r=" FMT64X " a=" FMT64X " b=" FMT64X "\n",
+ "maskmov",
+ r.q[0],
+ a.q[0],
b.q[0]);
- asm volatile("maskmovdqu %1, %0" :
+ asm volatile("maskmovdqu %1, %0" :
: "x" (a.dq), "x" (b.dq), "D" (&r)
- : "memory");
- printf("%-9s: r=" FMT64X "" FMT64X " a=" FMT64X "" FMT64X " b=" FMT64X "" FMT64X "\n",
- "maskmov",
- r.q[1], r.q[0],
- a.q[1], a.q[0],
+ : "memory");
+ printf("%-9s: r=" FMT64X "" FMT64X " a=" FMT64X "" FMT64X " b=" FMT64X "" FMT64X "\n",
+ "maskmov",
+ r.q[1], r.q[0],
+ a.q[1], a.q[0],
b.q[1], b.q[0]);
}
@@ -2506,8 +2506,8 @@ void test_sse(void)
SSE_OPS(cmpnlt);
SSE_OPS(cmpnle);
SSE_OPS(cmpord);
-
-
+
+
a.d[0] = 2.7;
a.d[1] = -3.4;
b.d[0] = 45.7;
diff --git a/tests/test_path.c b/tests/test_path.c
index a9b52de37..7d6e83176 100644
--- a/tests/test_path.c
+++ b/tests/test_path.c
@@ -149,4 +149,4 @@ int main(int argc, char *argv[])
}
return 0;
}
-
+