Skip to contentSkip to conversation

Problem with QEMU on PPC

Qemu-devel Helmar Wodtke 2 participants 2 messages Nov 4, 2004 – Nov 5, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I want to run x86 code (more specific my FORTH at http://www.printly.de/HelFORTH/ ) with user mode emulation on PPC linux. I've made some debugging and figured out that the following code (for fasm) does not run:
------------------------------------
format elf executable

entry main

main:
mov ebx,bla
inc dword [ebx]

xor ebx,ebx
xor eax,eax
inc eax
int 80h

bla: dd 0
------------------------------------
x86/x86 works fine, so I think this is a bug in PPC version. Also "inc dword [bla[" would work.

Thank you.

Helmar

BEGIN:VCARD
VERSION:2.1
N:Wodtke;Helmar;;;
FN:Helmar Wodtke
ADR;HOME:;;Hauptstra�e 12;Belgershain;;04683;Deutschland EMAIL;INTERNET:[email protected] EMAIL;INTERNET:[email protected]
END:VCARD

#1 lore raw

Hi,

Quoted 5 lines · Helmar Wodtke

I want to run x86 code (more specific my FORTH at
http://www.printly.de/HelFORTH/ ) with user mode emulation on PPC linux. I've made some debugging and figured out that the following code (for fasm)
does not run:

Means segmentation fault? Or does not start? Or does nothing?

Quoted 2 lines

x86/x86 works fine, so I think this is a bug in PPC version. Also "inc dword [bla[" would work.

Tip: Enable single stepping, enable all logging (or at least in_asm and cpu) and then compare between PPC and x86 host. You should get an idea which insn is causing the glitch.

Hth,
Dscho