LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1586|回复: 10

有没有模拟其他CPU的软件?

[复制链接]
发表于 2005-12-5 22:31:54 | 显示全部楼层 |阅读模式
因为想根据CLFS做一个交叉编译,却发现根本没有电脑来测试。
发表于 2005-12-5 22:56:39 | 显示全部楼层
PearPC
http://pearpc.sourceforge.net/
模拟 PowerPC 的, 也就是 Apple 现在的 cpu .

你可以做一个在 i386下编译 powerpc 程序的 gcc ,编译的程序在 pearpc里运行.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-5 23:35:27 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2005-12-6 06:15:20 | 显示全部楼层
32-32 也可以cross。:)。一样道理的。选不同的架构就可以了。

如果有64位CPU的话,也可以。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-6 15:45:56 | 显示全部楼层
Now i think QEMU is the best choice.
回复 支持 反对

使用道具 举报

发表于 2005-12-6 22:33:37 | 显示全部楼层
Well, QEMU is emulating a virtual machine, not CPU. Right?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-7 09:50:04 | 显示全部楼层
QEMU has two operating modes:
Full system emulation. In this mode, QEMU emulates a full system (for example a PC), including a processor and various peripherials. It can be used to launch different Operating Systems without rebooting the PC or to debug system code.
User mode emulation (Linux host only). In this mode, QEMU can launch Linux processes compiled for one CPU on another CPU.

既然including a procesoor,我的目的也就达到了。
回复 支持 反对

使用道具 举报

发表于 2005-12-8 06:27:05 | 显示全部楼层
QEMU 应该可以做到的。。有时间试一下。:)。谢谢yhyzh的回复。

to d00m3d,这里可以看到QEMU支持的CPU种类。
http://fabrice.bellard.free.fr/qemu/status.html
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-8 09:57:42 | 显示全部楼层
Post by 终极幻想
QEMU 应该可以做到的。。有时间试一下。:)。谢谢yhyzh的回复。

[/url]


偶是楼主哦。

今天测试了一下用Qemu运行Sarge for PPC,还是可以运行的,但是太慢了,慢得无法忍受。
明天试试装上kqemu能不能有改进。

那个鼎鼎大名的Xen现在也不支持其他CPU的模拟。
回复 支持 反对

使用道具 举报

发表于 2005-12-8 18:36:18 | 显示全部楼层
XEN 是用来同时运行多个操作系统用的吧。没用过,不过想试试。(想试的东西太多了)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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