From: Dirk Behme <dirk.behme@googlemail.com>
To: Alexander Voropay <a.voropay@equant.ru>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Add MIPS ELF loader
Date: Thu, 30 Mar 2006 19:34:59 +0200 [thread overview]
Message-ID: <442C16C3.1000105@gmail.com> (raw)
In-Reply-To: <146901c65406$4d029670$e90d11ac@spb.in.rosprint.ru>
Alexander Voropay wrote:
> I'm trying to implement a mips_bios, unfortunately, quemu seems can't
> run a code at the 0xbfc00000 region.
>
> See a http://pastebin.com/628591
>
> The conventional 'move k0,zero' instruction (line 35) causes an general
> exceprion to 0xbfc00380, see line 70
Try to change the following lines in hw/mips_r4k.c:
//#define KERNEL_LOAD_ADDR 0x80010000
#define KERNEL_LOAD_ADDR 0xBFC00000
//cpu_register_physical_memory(0, ram_size, IO_MEM_RAM);
cpu_register_physical_memory(0x1fc00000, ram_size, IO_MEM_RAM);
//kernel_size = load_image(kernel_filename,
// phys_ram_base + (kernel_base - 0x80000000));
kernel_size = load_image(kernel_filename, phys_ram_base);
Works for me:
(gdb) p/x $pc
$1 = 0xbfc00000
(gdb) x/2i $pc
0xbfc00000 <_start>: b 0xbfc00400 <reset>
0xbfc00004 <_start+4>: nop
(gdb) x/2i 0x1fc00000
0x1fc00000: b 0x1fc00400
0x1fc00004: nop
(gdb)
Best regards
Dirk
next prev parent reply other threads:[~2006-03-30 17:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-28 6:57 [Qemu-devel] [PATCH] Add MIPS ELF loader Dirk Behme
2006-03-28 13:01 ` Thiemo Seufer
2006-03-30 13:40 ` Dirk Behme
2006-03-30 13:53 ` Thiemo Seufer
2006-03-30 14:29 ` Alexander Voropay
2006-03-30 17:34 ` Dirk Behme [this message]
[not found] ` <442C0F57.3010200@gmail.com>
2006-04-02 12:54 ` Alexander Voropay
2006-04-23 17:16 ` Fabrice Bellard
2006-04-25 23:57 ` Thiemo Seufer
[not found] <154e01c66453$111e4f20$e90d11ac@spb.in.rosprint.ru>
2006-04-20 10:16 ` Marius Groeger
2006-04-20 10:28 ` Thiemo Seufer
2006-04-20 11:02 ` Alexander Voropay
2006-04-20 12:19 ` Alexander Voropay
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=442C16C3.1000105@gmail.com \
--to=dirk.behme@googlemail.com \
--cc=a.voropay@equant.ru \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.