zoukankan      html  css  js  c++  java
  • 使用Bochs运行程序:display library 'sdl' not available

    bochs运行程序报错:
    display library 'sdl' not available
    bx_dbg_read_linear: physical memory read error
    代码如下:

    kun@ubuntu:~/OSdesign$ bochs
    ========================================================================
                           Bochs x86 Emulator 2.6.9
                   Built from SVN snapshot on April 9, 2017
                      Compiled on Feb 28 2021 at 05:57:54
    ========================================================================
    00000000000i[      ] BXSHARE not set. using compile time default '/usr/local/share/bochs'
    00000000000i[      ] reading configuration from bochsrc
    00000000000p[      ] >>PANIC<< bochsrc:33: display library 'sdl' not available
    00000000000e[SIM   ] notify called, but no bxevent_callback function is registered
    00000000000e[SIM   ] notify called, but no bxevent_callback function is registered
    ========================================================================
    Bochs is exiting with the following message:
    [      ] bochsrc:33: display library 'sdl' not available
    ========================================================================
    00000000000i[CPU0  ] CPU is in real mode (active)
    00000000000i[CPU0  ] CS.mode = 16 bit
    00000000000i[CPU0  ] SS.mode = 16 bit
    00000000000i[CPU0  ] EFER   = 0x00000000
    00000000000i[CPU0  ] | EAX=00000000  EBX=00000000  ECX=00000000  EDX=00000000
    00000000000i[CPU0  ] | ESP=00000000  EBP=00000000  ESI=00000000  EDI=00000000
    00000000000i[CPU0  ] | IOPL=0 id vip vif ac vm rf nt of df if tf sf ZF af PF cf
    00000000000i[CPU0  ] | SEG sltr(index|ti|rpl)     base    limit G D
    00000000000i[CPU0  ] |  CS:0000( 0000| 0|  0) 00000000 00000000 0 0
    00000000000i[CPU0  ] |  DS:0000( 0000| 0|  0) 00000000 00000000 0 0
    00000000000i[CPU0  ] |  SS:0000( 0000| 0|  0) 00000000 00000000 0 0
    00000000000i[CPU0  ] |  ES:0000( 0000| 0|  0) 00000000 00000000 0 0
    00000000000i[CPU0  ] |  FS:0000( 0000| 0|  0) 00000000 00000000 0 0
    00000000000i[CPU0  ] |  GS:0000( 0000| 0|  0) 00000000 00000000 0 0
    00000000000i[CPU0  ] | EIP=00000000 (00000000)
    00000000000i[CPU0  ] | CR0=0x00000000 CR2=0x00000000
    00000000000i[CPU0  ] | CR3=0x00000000 CR4=0x00000000
    bx_dbg_read_linear: physical memory read error (phy=0x000000000000, lin=0x00000000)
    00000000000i[SIM   ] quit_sim called with exit code 1
    
    
    

    解决方法:
    注释掉配置文件中的代码:
    display_library: sdl

  • 相关阅读:
    day36-20180705笔记
    day33-20180626笔记
    day31-20180612笔记
    day30-20180610笔记
    day29-20180607笔记
    day28-20180605笔记
    day26-20180531笔记
    微信开发之自定义菜单--weixin-java-tools
    几种常用的json序列化和反序列化工具介绍
    微信开发之消息接收与回复--weixin-java-tools
  • 原文地址:https://www.cnblogs.com/CSE-kun/p/14465903.html
Copyright © 2011-2022 走看看