qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Darwin/Mac OS X Port
@ 2004-02-19 11:46 Pierre d'Herbemont
  2004-02-19 12:06 ` Karel Gardas
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Pierre d'Herbemont @ 2004-02-19 11:46 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 775 bytes --]

Hi all!

I finally made the dyngen tool mach-o compatible. But it is still not  
working, when I do:
i386-softmmu/qemu /path/to/linux.img -d
I get two block of instructions translated, but it ends in a SIGBUS  
with the following backtrace:

#0  0x00013ba4 in cpu_x86_exec (env1=0x1d) at  
/Users/steg/Documents/Programmation/System/Wine/Related/qemu/exec- 
all.h:275
#1  0x00006050 in main_loop (opaque=0x1d) at  
/Users/steg/Documents/Programmation/System/Wine/Related/qemu/vl.c:3161
#2  0x00006050 in main_loop (opaque=0x1d) at  
/Users/steg/Documents/Programmation/System/Wine/Related/qemu/vl.c:3161
#3  0x00006f98 in main (argc=983040, argv=0x206140) at  
/Users/steg/Documents/Programmation/System/Wine/Related/qemu/vl.c:3760
(To this email is attached the log output)

[-- Attachment #2: qemu.log --]
[-- Type: application/octet-stream, Size: 2871 bytes --]

EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000600
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=0000fff0 EFL=00000002 [-------]    CPL=0 II=0
ES =0000 00000000 0000ffff 00000000
CS =f000 000f0000 0000ffff 00000000
SS =0000 00000000 0000ffff 00000000
DS =0000 00000000 0000ffff 00000000
FS =0000 00000000 0000ffff 00000000
GS =0000 00000000 0000ffff 00000000
LDT=0000 00000000 0000ffff 00008000
TR =0000 00000000 0000ffff 00008000
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
CCS=00000000 CCD=00000000 CCO=EFLAGS  
----------------
IN: 
0x000ffff0:  ljmp   0xf000,0xe05b

AFTER FLAGS OPT:
0x0000: movl_T0_im 0xf000
0x0001: movl_T1_im 0xe05b
0x0002: movl_seg_T0_vm 0xb0
0x0003: movl_T0_T1
0x0004: jmp_T0
0x0005: movl_T0_0
0x0006: exit_tb
0x0007: end

Trace 0x00206100 [0x000ffff0] 
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000600
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------]    CPL=0 II=0
ES =0000 00000000 0000ffff 00000000
CS =f000 000f0000 0000ffff 00000000
SS =0000 00000000 0000ffff 00000000
DS =0000 00000000 0000ffff 00000000
FS =0000 00000000 0000ffff 00000000
GS =0000 00000000 0000ffff 00000000
LDT=0000 00000000 0000ffff 00008000
TR =0000 00000000 0000ffff 00008000
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
CCS=00000000 CCD=00000000 CCO=EFLAGS  
----------------
IN: 
0x000f0000:  pushw  %bp
0x000f0001:  movw   %sp,%bp
0x000f0003:  pushw  %ax
0x000f0004:  pushw  %cx
0x000f0005:  pushw  %es
0x000f0006:  pushw  %di
0x000f0007:  movw   0xa(bp),%cx
0x000f000a:  cmpw   $0x0,%cx
0x000f000d:  je     0xf001f

AFTER FLAGS OPT:
0x0000: movl_T0_EBP
0x0001: movl_A0_ESP
0x0002: subl_A0_2
0x0003: andl_A0_ffff
0x0004: movl_T1_A0
0x0005: addl_A0_SS
0x0006: stw_kernel_T0_A0
0x0007: movw_ESP_T1
0x0008: movl_T0_ESP
0x0009: movw_EBP_T0
0x000a: movl_T0_EAX
0x000b: movl_A0_ESP
0x000c: subl_A0_2
0x000d: andl_A0_ffff
0x000e: movl_T1_A0
0x000f: addl_A0_SS
0x0010: stw_kernel_T0_A0
0x0011: movw_ESP_T1
0x0012: movl_T0_ECX
0x0013: movl_A0_ESP
0x0014: subl_A0_2
0x0015: andl_A0_ffff
0x0016: movl_T1_A0
0x0017: addl_A0_SS
0x0018: stw_kernel_T0_A0
0x0019: movw_ESP_T1
0x001a: movl_T0_seg 0x0
0x001b: movl_A0_ESP
0x001c: subl_A0_2
0x001d: andl_A0_ffff
0x001e: movl_T1_A0
0x001f: addl_A0_SS
0x0020: stw_kernel_T0_A0
0x0021: movw_ESP_T1
0x0022: movl_T0_EDI
0x0023: movl_A0_ESP
0x0024: subl_A0_2
0x0025: andl_A0_ffff
0x0026: movl_T1_A0
0x0027: addl_A0_SS
0x0028: stw_kernel_T0_A0
0x0029: movw_ESP_T1
0x002a: movl_A0_EBP
0x002b: addl_A0_im 0xa
0x002c: andl_A0_ffff
0x002d: addl_A0_seg 0xc4
0x002e: lduw_kernel_T0_A0
0x002f: movw_ECX_T0
0x0030: movl_T1_im 0x0
0x0031: movl_T0_ECX
0x0032: cmpl_T0_T1_cc
0x0033: set_cc_op 0xc
0x0034: jz_subw 0x848184 0x1f 0xf
0x0035: end

Trace 0x00206140 [0x000f0000] 

[-- Attachment #3: Type: text/plain, Size: 454 bytes --]



I was wondering if the usage of qemu was correct. Can someone point me 
to the right direction on how to debug qemu and/or give me some help on 
this issue.

Here is a patch to make qemu build on Darwin. It is not cleaned enough 
to be integrated in CVS as is, but it will be soon. Also configure 
doesn't work properly so you'll have to edit configure output by hands 
on Darwin.
http://www.opendarwin.org/~pidherbemont/qemu.diff.txt

Thanks,

Pierre

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-02-28 19:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-19 11:46 [Qemu-devel] Darwin/Mac OS X Port Pierre d'Herbemont
2004-02-19 12:06 ` Karel Gardas
2004-02-19 12:25   ` Pierre d'Herbemont
2004-02-19 14:16     ` Karel Gardas
2004-02-19 16:31       ` Johan Rydberg
2004-02-19 20:45 ` Daniel J. Guinan
2004-02-19 22:17   ` Pierre d'Herbemont
2004-02-20  1:27     ` dguinan
2004-02-20  2:41       ` Pierre d'Herbemont
2004-02-26  0:12 ` Fabrice Bellard
2004-02-26  4:14   ` Satadru Pramanik
2004-02-26 10:51     ` J. Mayer
2004-02-28 19:50   ` Pierre d'Herbemont

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).