See `qemu-system-m68k -cpu ?`.

QEMU is not targeting it yet, but there's a project:
http://www.gitorious.org/qemu-m68k

-- 
qemu-system-m68k does not accept "notw %d" instruction
https://bugs.launchpad.net/bugs/547227
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Invalid

Bug description:
The notw and notb instructions does not work with latest version of 
qemu-system-m68k. I've tried both 0.12.3 and the latest git version compiled 
about an hour ago, both running on Arch Linux. The executable fails with the 
following output:
> qemu-system-m68k -nographic -M an5206 -kernel test.elf
qemu: fatal: Illegal instruction: 4640 @ 00000006
D0 = 00000000   A0 = 00000000   F0 = 0000000000000000 (           0)
D1 = 00000000   A1 = 00000000   F1 = 0000000000000000 (           0)
D2 = 00000000   A2 = 00000000   F2 = 0000000000000000 (           0)
D3 = 00000000   A3 = 00000000   F3 = 0000000000000000 (           0)
D4 = 00000000   A4 = 00000000   F4 = 0000000000000000 (           0)
D5 = 00000000   A5 = 00000000   F5 = 0000000000000000 (           0)
D6 = 00000000   A6 = 00000000   F6 = 0000000000000000 (           0)
D7 = 00000000   A7 = 00000000   F7 = 0000000000000000 (           0)
PC = 00000000   SR = 2700 ----- FPRESULT =            0
zsh: abort      qemu-system-m68k -nographic -M an5206 -kernel test.elf

I've attached the test.elf file, which produces the bug. It contains the 
following:
> m68k-elf-objdump -m 68000 -D test.elf                              
test.elf:     file format elf32-m68k
Disassembly of section .text:
00000000 <start>:
   0:   4e71            nop
   2:   4e71            nop
   4:   4e71            nop
   6:   4640            notw %d0
00000008 <loop>:
   8:   6000 fffe       braw 8 <loop>

It works when removing the not instruction. There might be other non-working 
instructions, I've only tested a few.
Hope you'll get the bug fixed. Thanks.



Reply via email to