1.下载bochs-2.1.1版本
http://sourceforge.net/
2. ./configure
3. make
4. 切换到root, make install
遇到问题:
在make过程中,遇到两个错误:
harddrv.h:290: 错误:有多余的限定‘sparse_image_t::’在成员‘get_physical_offset’上
harddrv.h:295: 错误:有多余的限定‘sparse_image_t::’在成员‘get_physical_offset’上
解决:修改bochs目录下iodev/harddrv.h文件
将两处
#ifndef PARANOID
sparse_image_t::
#endif
sparse_image_t::
#endif
注释掉
make clean后,重复上述步骤即可解决问题。