New 'qemu-mips64' test architecture for U-Boot
cover New 'qemu-mips64' test architecture for U-Boot
As so far, U-Boot has already supports mips32. But there are some
differences between mips64 and mips32. Such as different ABI, different output format. so this patch adds mips64 support.
I use cross compiler from clfs and build U-Boot like this:
export CROSS_COMPILE=/home/zhangzz/work/clfs/sys_root/cross-tools/bin/mips64el-unknown-linux-gnu- make qemu_mips64_config
make
And run U-Boot with command below:
$ qemu-system-mips64el -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic U-Boot 2012.07-00089-gbbffc64 (Aug 14 2012 - 22:34:02)
Board: Qemu -M mips CPU: unknown proc_id=0x10000 DRAM: 128 MiB
Using default environment
In: serial
Out: serial Err: serial Net: NE2000
qemu-mips64 #
=====
Detail:
1 Add qemu_mips64_defconfig, and add related build configuration. 2 mips/cpu/mips64/* are derived from mips/cpu/mips32, but mips32 is using ABI O32, we can't build it with mips64 cross compiler. so changes are made. 3 Some address operation didn't take care about mips64, so asm/addrspace.h and io.h were changed.
arch/mips/config.mk | 14 +- arch/mips/cpu/mips64/Makefile | 48 +++++ arch/mips/cpu/mips64/cache.S | 229 +++++++++++++++++++++ arch/mips/cpu/mips64/config.mk | 36 ++++ arch/mips/cpu/mips64/cpu.c | 116 +++++++++++ arch/mips/cpu/mips64/interrupts.c | 38 ++++ arch/mips/cpu/mips64/start.S | 374 +++++++++++++++++++++++++++++++++++ arch/mips/cpu/mips64/time.c | 86 ++++++++ arch/mips/include/asm/addrspace.h | 2 +- arch/mips/include/asm/io.h | 16 ++ arch/mips/include/asm/posix_types.h | 4 + board/qemu-mips/config.mk | 7 + board/qemu-mips/u-boot.lds | 8 + boards.cfg | 1 + examples/standalone/mips64.lds | 59 ++++++ include/configs/qemu-mips64.h | 168 ++++++++++++++++ 17 files changed, 1206 insertions(+), 3 deletions(-)
Signature · 2 lines
Regards, Zhizhou Zhang
cover New 'qemu-mips64' test architecture for U-Boot
Quoted 3 lines · On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote:
As so far, U-Boot has already supports mips32. But there are some
differences between mips64 and mips32. Such as different ABI, different output format. so this patch adds mips64 support.
many of your patches are line wrapped. please use git send-email rather than whatever client you're using (looks like gmail?) as it won't screw things up.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120814/7400e227/attachment.pgp>
cover New 'qemu-mips64' test architecture for U-Boot
Quoted 9 lines · On Tuesday 14 August 2012 11:49:49 Mike Frysinger wrote:
Quoted 4 lines · On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote:
As so far, U-Boot has already supports mips32. But there are some
differences between mips64 and mips32. Such as different ABI, different output format. so this patch adds mips64 support.
many of your patches are line wrapped. please use
git send-emailrather than whatever client you're using (looks like gmail?) as it won't screw things up.
hmm, actually it's worse than that -- the leading whitespace is all mangled too. i'm assuming your code isn't that screwed up, so please resend with git- sendemail.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120814/6370ffe0/attachment.pgp>
cover New 'qemu-mips64' test architecture for U-Boot
Quoted 18 lines · Mike Frysinger
Quoted 7 lines · On Tuesday 14 August 2012 11:49:49 Mike Frysinger wrote:
Quoted 4 lines · On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote:
As so far, U-Boot has already supports mips32. But there are some
differences between mips64 and mips32. Such as different ABI, different output format. so this patch adds mips64 support.
many of your patches are line wrapped. please use
git send-emailrather
Quoted 2 lines
than whatever client you're using (looks like gmail?) as it won't screw things up.
hmm, actually it's worse than that -- the leading whitespace is all mangled too. i'm assuming your code isn't that screwed up, so please resend with git-
sendemail.
-mike
Quoted 6 lines
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
OK, I will retry. actually I sent it by copy-and-paste. I wasn't aware of that. thanks.
Signature · 2 lines
Regards, Zhizhou Zhang
cover New 'qemu-mips64' test architecture for U-Boot
Hi,
2012/8/15 Zhi-zhou Zhang <[email protected]>:
Quoted 20 lines · Mike Frysinger
Quoted 19 lines · On Tuesday 14 August 2012 11:49:49 Mike Frysinger wrote:
Quoted 7 lines · On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote:
Quoted 4 lines
As so far, U-Boot has already supports mips32. But there are some
differences between mips64 and mips32. Such as different ABI, different output format. so this patch adds mips64 support.
many of your patches are line wrapped. please use
git send-emailrather
Quoted 2 lines
than whatever client you're using (looks like gmail?) as it won't screw things up.
hmm, actually it's worse than that -- the leading whitespace is all mangled too. i'm assuming your code isn't that screwed up, so please resend with git-
sendemail.
-mike
Quoted 9 lines
Quoted 6 lines
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-bootOK, I will retry. actually I sent it by copy-and-paste. I wasn't aware of that. thanks.
then you should read http://www.denx.de/wiki/U-Boot/Patches
And please do for all MIPS specific patches:
- CC me
- use the prefix MIPS: in the email subject
Signature · 2 lines
Thanks and regards, Daniel
cover New 'qemu-mips64' test architecture for U-Boot
Quoted 40 lines · Daniel Schwierzeck
Hi,
2012/8/15 Zhi-zhou Zhang <[email protected]>:
Quoted 1 line
On Tue, Aug 14, 2012 at 11:51 PM, Mike Frysinger <[email protected]>
Quoted 6 lines · wrote:
Quoted 6 lines · On Tuesday 14 August 2012 11:49:49 Mike Frysinger wrote:
Quoted 4 lines · On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote:
Quoted 3 lines
As so far, U-Boot has already supports mips32. But there are some
differences between mips64 and mips32. Such as different ABI,
different
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
output format. so this patch adds mips64 support.
many of your patches are line wrapped. please use
git send-emailrather
Quoted 1 line
than whatever client you're using (looks like gmail?) as it won't
screw
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
things up.
hmm, actually it's worse than that -- the leading whitespace is all
mangled
Quoted 1 line
Quoted 1 line
too. i'm assuming your code isn't that screwed up, so please resend
with
Quoted 4 lines
Quoted 4 lines
git-
sendemail.
-mikeQuoted 9 lines
Quoted 6 lines
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-bootOK, I will retry. actually I sent it by copy-and-paste. I wasn't aware of that. thanks.
then you should read http://www.denx.de/wiki/U-Boot/Patches
Quoted 8 lines
And please do for all MIPS specific patches:
- CC me
- use the prefix MIPS: in the email subject--
Thanks and regards,
Daniel
Thanks for all your suggestions. I will improve them in next version.
Signature · 2 lines
Regards, Zhizhou Zhang