Skip to contentSkip to conversation

about porting qemu to alpha platform

Qemu-devel identifier scorpio 2 participants 2 messages Dec 5, 2009 – Dec 12, 2009

lore
Share & tools
lore
#0 lore raw

Hello all!

I'm trying to port qemu to alpha platform, and my working environment is
an alpha xp1000 workstation (21264) that is running debian 5.

I'v got some progress, and now it can run PC BIOS, and can launch linux 2.6
using the linux-0.2.img given by qemu web-site. But linux got a panic when
mounting root fs. Surely there must be something wrong in my code, or something  out of my knowledge is omitted.

below is my testing command line:

qemu -hda /opt/linux-0.2.img -m 256 -curses

I'v tried to find the bugs for a couple of painful days, including studying
qemu.log, running test-i386 benchmark (all the basic x86 insn passed test, but
test-i386 stops at test_exception(), reporing uncaught signal 10, to be honestly,
i don't know the real reason). I'v not debugged the linux kernel running in qemu with gdb yet,  it seems to be a terrible job.
So, I post the patch and hope someone may give me some help or suggestions
to find the fault, or tell me that am I doing the right thing? TIA.

BTW, I know that alpha is disappearing, but I really hope qemu can run on it.

Dong Weiyu.

cpu-all.h    2009-10-25 23:13:53.000000000 -0700 renamed from cpu-all.h    2009-03-04 14:54:45.000000000 -0800 +0 -0
diff -urN qemu-0.10.0/cpu-all.h qemu-0.10.0.alpha/cpu-all.h
@@ -22,7 +22,7 @@


 #include "qemu-common.h"

-#if defined(__arm__) || defined(__sparc__) || defined(__mips__) || defined(__hppa__)
+#if defined(__arm__) || defined(__sparc__) || defined(__mips__) || defined(__hppa__) || defined(__alpha__)

 #define WORDS_ALIGNED
 #endif

tcg/alpha/tcg-target.c    2009-11-26 05:13:41.000000000 -0800 renamed from tcg/alpha/tcg-target.c    1969-12-31 16:00:00.000000000 -0800 +1477 -0

1,477 lines not on this page · raw message

tcg/alpha/tcg-target.h    2009-10-23 23:09:46.000000000 -0700 renamed from tcg/alpha/tcg-target.h    1969-12-31 16:00:00.000000000 -0800 +60 -0

60 lines not on this page · raw message

      ___________________________________________________________ 

好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/

#1 lore raw

Hello,

Am 05.12.2009 um 16:23 schrieb identifier scorpio:

cpu-all.h 2009-10-25 23:13:53.000000000 -0700

Quoted 6 lines

I'm trying to port qemu to alpha platform, and my working environment is an alpha xp1000 workstation (21264) that is running debian 5.

diff -urN qemu-0.10.0/cpu-all.h qemu-0.10.0.alpha/cpu-all.h

cpu-all.h 2009-10-25 23:13:53.000000000 -0700 renamed from cpu-all.h 2009-03-04 14:54:45.000000000 -0800 +0 -0

While I don't know much about alpha architecture, I notice that you seem to be working against version 0.10.
You should consider forward-porting your work to git master branch, to assure that your patches apply cleanly and that you are copying from the latest TCG code.

Andreas