qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
To: KAWAKATSU Noritaka <kawakatsu.noritaka@interdesigntech.co.jp>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] u-boot on 'qemu-system-mips64 -M mips'
Date: Tue, 22 Jun 2010 11:09:48 +0200	[thread overview]
Message-ID: <87eifzsaar.fsf@lechat.rtp-net.org> (raw)
In-Reply-To: <4C1FF537.5020904@interdesigntech.co.jp> (KAWAKATSU Noritaka's message of "Tue\, 22 Jun 2010 08\:26\:47 +0900")

KAWAKATSU Noritaka <kawakatsu.noritaka@interdesigntech.co.jp> writes:

> Hi,


Hi,
>
> I have built u-boot binary for 'qemu-system-mips -M mips'.
> It is fine to run ths u-boot binary.
> But the same u-boot binary does not run on 'qemu-system-mips64 -M mips'.
>
> I do not understand what happends on the qemu-mips64 execution.
> Is this a bug for qemu-system-mips64 ?
> Or should I build u-boot binary by another configuration?
>
> ------
> * u-boot building steps
> (1) build the gcc 4.5 cross-compiler for mips from the source.
> (2) build u-boot(2010.03) by the (1)compiler.
> (3) copy the u-boot.bin to /usr/share/qemu/mips_bios.bin
> * qemu(mips) execution command
> $ qemu-system-mips -L /usr/share/qemu -d in_asm -nographic
> * get /tmp/qemu.log
> the execution seems fine.
>
> * qemu(mips64) execution command
> $ qemu-system-mips64 -L /usr/share/qemu -d in_asm -nographic
> * get /tmp/qemu.log
> the execution seems not fine. Something is wrong?
>
>
>
> ----- /tmp/qemu.log (last 10-20 lines) [qemu-system-mips64]
> IN:
> 0xffffffffbfc0ee8c:  xori	v0,v0,0x3d
> 0xffffffffbfc0ee90:  li	v1,-1
> 0xffffffffbfc0ee94:  movn	s1,v1,v0
> 0xffffffffbfc0ee98:  lw	ra,52(sp)
> 0xffffffffbfc0ee9c:  move	v0,s1
> 0xffffffffbfc0eea0:  lw	s3,48(sp)
> 0xffffffffbfc0eea4:  lw	s2,44(sp)
> 0xffffffffbfc0eea8:  lw	s1,40(sp)
> 0xffffffffbfc0eeac:  lw	s0,36(sp)
> 0xffffffffbfc0eeb0:  jr	ra
> 0xffffffffbfc0eeb4:  addiu	sp,sp,56
>
> helper_raise_exception_err: 20 0
> do_interrupt enter: PC ffffffffbfc0ee94 EPC 0000000000000000 reserved instruction exception
> do_interrupt: PC ffffffffbfc00380 EPC ffffffffbfc0ee94 cause 10
>     S 00400002 C 00808428 A 0000000000000000 D 0000000000000000

so EPC is set to ffffffffbfc0ee94 which is :
movn     s1,v1,v0

>From what I understand when reading the mips IV manual, the movn ins is
only for mips IV / 32bit and not 64bit. Looks like the qemu code has
been written following this. (This also explains why qemu-system-mips is
fine and not qemu-system-mips64).


Arnaud

  parent reply	other threads:[~2010-06-22  9:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-21 23:26 [Qemu-devel] u-boot on 'qemu-system-mips64 -M mips' KAWAKATSU Noritaka
2010-06-22  0:38 ` [Qemu-devel] (buiding info)u-boot " KAWAKATSU Noritaka
2010-06-22  9:09 ` Arnaud Patard [this message]
2010-06-22  9:48   ` [Qemu-devel] u-boot " KAWAKATSU Noritaka
2010-06-23  7:19     ` KAWAKATSU, Noritaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eifzsaar.fsf@lechat.rtp-net.org \
    --to=arnaud.patard@rtp-net.org \
    --cc=kawakatsu.noritaka@interdesigntech.co.jp \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).