龙芯开源社区

 找回密码
 注册新用户(newuser)
查看: 4470|回复: 7

emulating loongson

[复制链接]
发表于 2013-3-4 07:56:33 | 显示全部楼层 |阅读模式
hi. i am a programmer, and decided, to compile in the future to loongson computer architecture too.

i do not have loongson, however, can i emulate the architecture with some emulator, and are there any pre-packaged machines available?

or i should just emulate a generic mips computer with qemu, and boot a generic mips linux distro, and my binary will be compatible with the loongson too? or there are any significant differences that may forbid me to do this (for example if the loongson cpus use a bit different instruction set on user-mode level, or the distros use some different base libraries)?
发表于 2013-3-4 17:09:07 | 显示全部楼层
学好中文有利于国际交流 努力学中文吧 更方便更快捷 不信把前面的话翻译成你们的语言来和对应的中文比较一下就知道谁更简洁了
 楼主| 发表于 2013-3-4 22:49:01 | 显示全部楼层
回复 2# 文杰

thanks!

i will try to translate it somehow.
发表于 2013-3-5 08:05:37 | 显示全部楼层
所见略同 我们也会把外语资料翻译成中文 这样就容易学习多了
发表于 2013-3-5 08:09:27 | 显示全部楼层
emulating loongson 需要18字节存储空间 直接输入需要按18次键
模拟龙芯 只需要8字节存储空间 我用五笔输入也只须按8次键
发表于 2013-3-5 08:28:21 | 显示全部楼层
本帖最后由 mxcai2005 于 2013-3-5 08:30 编辑

回复 1# Geri


# qemu-system-mips64el -cpu ?
MIPS '4Kc'
MIPS '4Km'
MIPS '4KEcR1'
MIPS '4KEmR1'
MIPS '4KEc'
MIPS '4KEm'
MIPS '24Kc'
MIPS '24Kf'
MIPS '34Kf'
MIPS '74Kf'
MIPS 'R4000'
MIPS 'VR5432'
MIPS '5Kc'
MIPS '5Kf'
MIPS '20Kc'
MIPS 'MIPS64R2-generic'
MIPS 'Loongson-2E'
MIPS 'Loongson-2F'
MIPS 'mips64dspr2'

you can use qemu emulating loongson 2e  or loongson 2f

and this URL: http://dev.lemote.com/code/linux-loongson-community#Qemu  may be can help you
 楼主| 发表于 2013-3-5 22:13:43 | 显示全部楼层
mxcai2005: thankyou, that is what i need.
发表于 2013-3-8 06:53:49 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽

本版积分规则

小黑屋|手机版|Archiver|Lemote Inc.  

GMT+8, 2019-1-21 21:19 , Processed in 0.267055 second(s), 18 queries .

快速回复 返回顶部 返回列表