亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? vl.c

?? QEMU 0.91 source code, supports ARM processor including S3C24xx series
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* * QEMU System Emulator * * Copyright (c) 2003-2008 Fabrice Bellard * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */#include "hw/hw.h"#include "hw/boards.h"#include "hw/usb.h"#include "hw/pcmcia.h"#include "hw/pc.h"#include "hw/fdc.h"#include "hw/audiodev.h"#include "hw/isa.h"#include "net.h"#include "console.h"#include "sysemu.h"#include "gdbstub.h"#include "qemu-timer.h"#include "qemu-char.h"#include "block.h"#include "audio/audio.h"#include <unistd.h>#include <fcntl.h>#include <signal.h>#include <time.h>#include <errno.h>#include <sys/time.h>#include <zlib.h>#ifndef _WIN32#include <sys/times.h>#include <sys/wait.h>#include <termios.h>#include <sys/poll.h>#include <sys/mman.h>#include <sys/ioctl.h>#include <sys/socket.h>#include <netinet/in.h>#include <dirent.h>#include <netdb.h>#include <sys/select.h>#include <arpa/inet.h>#ifdef _BSD#include <sys/stat.h>#ifndef __APPLE__#include <libutil.h>#endif#elif defined (__GLIBC__) && defined (__FreeBSD_kernel__)#include <freebsd/stdlib.h>#else#ifndef __sun__#include <linux/if.h>#include <linux/if_tun.h>#include <pty.h>#include <malloc.h>#include <linux/rtc.h>/* For the benefit of older linux systems which don't supply it,   we use a local copy of hpet.h. *//* #include <linux/hpet.h> */#include "hpet.h"#include <linux/ppdev.h>#include <linux/parport.h>#else#include <sys/stat.h>#include <sys/ethernet.h>#include <sys/sockio.h>#include <netinet/arp.h>#include <netinet/in.h>#include <netinet/in_systm.h>#include <netinet/ip.h>#include <netinet/ip_icmp.h> // must come after ip.h#include <netinet/udp.h>#include <netinet/tcp.h>#include <net/if.h>#include <syslog.h>#include <stropts.h>#endif#endif#else#include <winsock2.h>int inet_aton(const char *cp, struct in_addr *ia);#endif#if defined(CONFIG_SLIRP)#include "libslirp.h"#endif#ifdef _WIN32#include <malloc.h>#include <sys/timeb.h>#include <mmsystem.h>#define getopt_long_only getopt_long#define memalign(align, size) malloc(size)#endif#include "qemu_socket.h"#ifdef CONFIG_SDL#ifdef __APPLE__#include <SDL/SDL.h>#endif#endif /* CONFIG_SDL */#ifdef CONFIG_COCOA#undef main#define main qemu_main#endif /* CONFIG_COCOA */#include "disas.h"#include "exec-all.h"#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"#ifdef __sun__#define SMBD_COMMAND "/usr/sfw/sbin/smbd"#else#define SMBD_COMMAND "/usr/sbin/smbd"#endif//#define DEBUG_UNUSED_IOPORT//#define DEBUG_IOPORT#define PHYS_RAM_MAX_SIZE (2047 * 1024 * 1024)#ifdef TARGET_PPC#define DEFAULT_RAM_SIZE 144#else#define DEFAULT_RAM_SIZE 128#endif/* in ms */#define GUI_REFRESH_INTERVAL 30/* Max number of USB devices that can be specified on the commandline.  */#define MAX_USB_CMDLINE 8/* XXX: use a two level table to limit memory usage */#define MAX_IOPORTS 65536const char *bios_dir = CONFIG_QEMU_SHAREDIR;const char *bios_name = NULL;void *ioport_opaque[MAX_IOPORTS];IOPortReadFunc *ioport_read_table[3][MAX_IOPORTS];IOPortWriteFunc *ioport_write_table[3][MAX_IOPORTS];/* Note: drives_table[MAX_DRIVES] is a dummy block driver if none available   to store the VM snapshots */DriveInfo drives_table[MAX_DRIVES+1];int nb_drives;/* point to the block driver where the snapshots are managed */BlockDriverState *bs_snapshots;int vga_ram_size;static DisplayState display_state;int nographic;const char* keyboard_layout = NULL;int64_t ticks_per_sec;int ram_size;int pit_min_timer_count = 0;int nb_nics;NICInfo nd_table[MAX_NICS];int vm_running;int rtc_utc = 1;int rtc_start_date = -1; /* -1 means now */int cirrus_vga_enabled = 1;int vmsvga_enabled = 0;#ifdef TARGET_SPARCint graphic_width = 1024;int graphic_height = 768;int graphic_depth = 8;#elseint graphic_width = 800;int graphic_height = 600;int graphic_depth = 15;#endifint full_screen = 0;int no_frame = 0;int no_quit = 0;CharDriverState *serial_hds[MAX_SERIAL_PORTS];CharDriverState *parallel_hds[MAX_PARALLEL_PORTS];#ifdef TARGET_I386int win2k_install_hack = 0;#endifint usb_enabled = 0;static VLANState *first_vlan;int smp_cpus = 1;const char *vnc_display;#if defined(TARGET_SPARC)#define MAX_CPUS 16#elif defined(TARGET_I386)#define MAX_CPUS 255#else#define MAX_CPUS 1#endifint acpi_enabled = 1;int fd_bootchk = 1;int no_reboot = 0;int cursor_hide = 1;int graphic_rotate = 0;int daemonize = 0;const char *option_rom[MAX_OPTION_ROMS];int nb_option_roms;int semihosting_enabled = 0;int autostart = 1;#ifdef TARGET_ARMint old_param = 0;#endifconst char *qemu_name;int alt_grab = 0;#ifdef TARGET_SPARCunsigned int nb_prom_envs = 0;const char *prom_envs[MAX_PROM_ENVS];#endifint nb_drives_opt;char drives_opt[MAX_DRIVES][1024];static CPUState *cur_cpu;static CPUState *next_cpu;static int event_pending = 1;#define TFR(expr) do { if ((expr) != -1) break; } while (errno == EINTR)/***********************************************************//* x86 ISA bus support */target_phys_addr_t isa_mem_base = 0;PicState2 *isa_pic;static uint32_t default_ioport_readb(void *opaque, uint32_t address){#ifdef DEBUG_UNUSED_IOPORT    fprintf(stderr, "unused inb: port=0x%04x\n", address);#endif    return 0xff;}static void default_ioport_writeb(void *opaque, uint32_t address, uint32_t data){#ifdef DEBUG_UNUSED_IOPORT    fprintf(stderr, "unused outb: port=0x%04x data=0x%02x\n", address, data);#endif}/* default is to make two byte accesses */static uint32_t default_ioport_readw(void *opaque, uint32_t address){    uint32_t data;    data = ioport_read_table[0][address](ioport_opaque[address], address);    address = (address + 1) & (MAX_IOPORTS - 1);    data |= ioport_read_table[0][address](ioport_opaque[address], address) << 8;    return data;}static void default_ioport_writew(void *opaque, uint32_t address, uint32_t data){    ioport_write_table[0][address](ioport_opaque[address], address, data & 0xff);    address = (address + 1) & (MAX_IOPORTS - 1);    ioport_write_table[0][address](ioport_opaque[address], address, (data >> 8) & 0xff);}static uint32_t default_ioport_readl(void *opaque, uint32_t address){#ifdef DEBUG_UNUSED_IOPORT    fprintf(stderr, "unused inl: port=0x%04x\n", address);#endif    return 0xffffffff;}static void default_ioport_writel(void *opaque, uint32_t address, uint32_t data){#ifdef DEBUG_UNUSED_IOPORT    fprintf(stderr, "unused outl: port=0x%04x data=0x%02x\n", address, data);#endif}static void init_ioports(void){    int i;    for(i = 0; i < MAX_IOPORTS; i++) {        ioport_read_table[0][i] = default_ioport_readb;        ioport_write_table[0][i] = default_ioport_writeb;        ioport_read_table[1][i] = default_ioport_readw;        ioport_write_table[1][i] = default_ioport_writew;        ioport_read_table[2][i] = default_ioport_readl;        ioport_write_table[2][i] = default_ioport_writel;    }}/* size is the word size in byte */int register_ioport_read(int start, int length, int size,                         IOPortReadFunc *func, void *opaque){    int i, bsize;    if (size == 1) {        bsize = 0;    } else if (size == 2) {        bsize = 1;    } else if (size == 4) {        bsize = 2;    } else {        hw_error("register_ioport_read: invalid size");        return -1;    }    for(i = start; i < start + length; i += size) {        ioport_read_table[bsize][i] = func;        if (ioport_opaque[i] != NULL && ioport_opaque[i] != opaque)            hw_error("register_ioport_read: invalid opaque");        ioport_opaque[i] = opaque;    }    return 0;}/* size is the word size in byte */int register_ioport_write(int start, int length, int size,                          IOPortWriteFunc *func, void *opaque){    int i, bsize;    if (size == 1) {        bsize = 0;    } else if (size == 2) {        bsize = 1;    } else if (size == 4) {        bsize = 2;    } else {        hw_error("register_ioport_write: invalid size");        return -1;    }    for(i = start; i < start + length; i += size) {        ioport_write_table[bsize][i] = func;        if (ioport_opaque[i] != NULL && ioport_opaque[i] != opaque)            hw_error("register_ioport_write: invalid opaque");        ioport_opaque[i] = opaque;    }    return 0;}void isa_unassign_ioport(int start, int length){    int i;    for(i = start; i < start + length; i++) {        ioport_read_table[0][i] = default_ioport_readb;        ioport_read_table[1][i] = default_ioport_readw;        ioport_read_table[2][i] = default_ioport_readl;        ioport_write_table[0][i] = default_ioport_writeb;        ioport_write_table[1][i] = default_ioport_writew;        ioport_write_table[2][i] = default_ioport_writel;    }}/***********************************************************/void cpu_outb(CPUState *env, int addr, int val){#ifdef DEBUG_IOPORT    if (loglevel & CPU_LOG_IOPORT)        fprintf(logfile, "outb: %04x %02x\n", addr, val);#endif    ioport_write_table[0][addr](ioport_opaque[addr], addr, val);#ifdef USE_KQEMU    if (env)        env->last_io_time = cpu_get_time_fast();#endif}void cpu_outw(CPUState *env, int addr, int val){#ifdef DEBUG_IOPORT    if (loglevel & CPU_LOG_IOPORT)        fprintf(logfile, "outw: %04x %04x\n", addr, val);#endif    ioport_write_table[1][addr](ioport_opaque[addr], addr, val);#ifdef USE_KQEMU    if (env)        env->last_io_time = cpu_get_time_fast();#endif}void cpu_outl(CPUState *env, int addr, int val){#ifdef DEBUG_IOPORT    if (loglevel & CPU_LOG_IOPORT)        fprintf(logfile, "outl: %04x %08x\n", addr, val);#endif    ioport_write_table[2][addr](ioport_opaque[addr], addr, val);#ifdef USE_KQEMU    if (env)        env->last_io_time = cpu_get_time_fast();#endif}int cpu_inb(CPUState *env, int addr){    int val;    val = ioport_read_table[0][addr](ioport_opaque[addr], addr);#ifdef DEBUG_IOPORT    if (loglevel & CPU_LOG_IOPORT)        fprintf(logfile, "inb : %04x %02x\n", addr, val);#endif#ifdef USE_KQEMU    if (env)        env->last_io_time = cpu_get_time_fast();#endif    return val;}int cpu_inw(CPUState *env, int addr){    int val;    val = ioport_read_table[1][addr](ioport_opaque[addr], addr);#ifdef DEBUG_IOPORT    if (loglevel & CPU_LOG_IOPORT)        fprintf(logfile, "inw : %04x %04x\n", addr, val);#endif#ifdef USE_KQEMU    if (env)        env->last_io_time = cpu_get_time_fast();#endif    return val;}int cpu_inl(CPUState *env, int addr){    int val;    val = ioport_read_table[2][addr](ioport_opaque[addr], addr);#ifdef DEBUG_IOPORT    if (loglevel & CPU_LOG_IOPORT)        fprintf(logfile, "inl : %04x %08x\n", addr, val);#endif#ifdef USE_KQEMU    if (env)        env->last_io_time = cpu_get_time_fast();#endif    return val;}/***********************************************************/void hw_error(const char *fmt, ...){    va_list ap;    CPUState *env;    va_start(ap, fmt);    fprintf(stderr, "qemu: hardware error: ");    vfprintf(stderr, fmt, ap);    fprintf(stderr, "\n");    for(env = first_cpu; env != NULL; env = env->next_cpu) {        fprintf(stderr, "CPU #%d:\n", env->cpu_index);#ifdef TARGET_I386        cpu_dump_state(env, stderr, fprintf, X86_DUMP_FPU);#else        cpu_dump_state(env, stderr, fprintf, 0);#endif    }    va_end(ap);    abort();}/***********************************************************//* keyboard/mouse */static QEMUPutKBDEvent *qemu_put_kbd_event;static void *qemu_put_kbd_event_opaque;static QEMUPutMouseEntry *qemu_put_mouse_event_head;static QEMUPutMouseEntry *qemu_put_mouse_event_current;void qemu_add_kbd_event_handler(QEMUPutKBDEvent *func, void *opaque){    qemu_put_kbd_event_opaque = opaque;    qemu_put_kbd_event = func;}QEMUPutMouseEntry *qemu_add_mouse_event_handler(QEMUPutMouseEvent *func,                                                void *opaque, int absolute,                                                const char *name){    QEMUPutMouseEntry *s, *cursor;    s = qemu_mallocz(sizeof(QEMUPutMouseEntry));    if (!s)        return NULL;    s->qemu_put_mouse_event = func;    s->qemu_put_mouse_event_opaque = opaque;    s->qemu_put_mouse_event_absolute = absolute;    s->qemu_put_mouse_event_name = qemu_strdup(name);    s->next = NULL;    if (!qemu_put_mouse_event_head) {        qemu_put_mouse_event_head = qemu_put_mouse_event_current = s;        return s;    }    cursor = qemu_put_mouse_event_head;    while (cursor->next != NULL)        cursor = cursor->next;    cursor->next = s;    qemu_put_mouse_event_current = s;    return s;}void qemu_remove_mouse_event_handler(QEMUPutMouseEntry *entry){    QEMUPutMouseEntry *prev = NULL, *cursor;    if (!qemu_put_mouse_event_head || entry == NULL)        return;    cursor = qemu_put_mouse_event_head;    while (cursor != NULL && cursor != entry) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩电影免费在线观看网站| 亚洲福利电影网| 色综合天天做天天爱| 亚洲成人三级小说| 久久婷婷久久一区二区三区| 97精品国产露脸对白| 蜜臀99久久精品久久久久久软件| 国产偷国产偷亚洲高清人白洁| 欧美在线free| 国产91对白在线观看九色| 国产精品午夜久久| 成年人国产精品| 热久久国产精品| 国产精品热久久久久夜色精品三区| 51精品视频一区二区三区| 成a人片国产精品| 美女网站色91| 午夜精品一区二区三区电影天堂| 国产色91在线| 日韩一区二区三区在线视频| 在线日韩av片| 91蜜桃视频在线| 懂色一区二区三区免费观看| 精品一区二区在线观看| 亚洲第一成人在线| 1000部国产精品成人观看| 久久中文娱乐网| 91精品国产欧美一区二区18| 欧美性视频一区二区三区| 不卡一区二区中文字幕| 韩国毛片一区二区三区| 日本欧美韩国一区三区| 亚洲亚洲精品在线观看| 中文字幕一区二区三| 亚洲国产精品高清| 精品国产污污免费网站入口| 91精品国产福利| 欧美精品在线观看一区二区| 在线这里只有精品| 在线一区二区三区四区五区| 99久久久国产精品免费蜜臀| 成人动漫在线一区| 成人av一区二区三区| 国产999精品久久久久久绿帽| 国内外成人在线| 国产在线精品不卡| 国产美女在线观看一区| 精一区二区三区| 久久66热偷产精品| 久久99蜜桃精品| 国产在线播放一区三区四| 久久99国产乱子伦精品免费| 成人黄色av电影| 成人av在线电影| 99久久精品免费观看| av在线不卡免费看| 色综合久久天天| 欧美三电影在线| 欧美日韩国产美女| 日韩一二三区视频| 欧美不卡激情三级在线观看| 久久久精品国产99久久精品芒果 | 97久久精品人人澡人人爽| 国产99精品国产| 一本大道av一区二区在线播放| 色婷婷精品久久二区二区蜜臂av | 欧美综合一区二区| 欧美网站一区二区| 91精品啪在线观看国产60岁| 精品国产髙清在线看国产毛片 | 亚洲男同性视频| 午夜精品国产更新| 另类人妖一区二区av| 国产成人亚洲综合a∨猫咪| av一二三不卡影片| 欧美日韩国产免费| 亚洲精品一线二线三线| 欧美国产欧美综合| 亚洲一区电影777| 国产一区二区视频在线| 99视频有精品| 欧美一级电影网站| 国产精品电影院| 亚洲va国产天堂va久久en| 精品一区二区免费在线观看| 成人免费看的视频| 欧美日韩一区在线| 国产欧美日韩一区二区三区在线观看| 亚洲精品综合在线| 日本三级韩国三级欧美三级| 成人蜜臀av电影| 欧美疯狂性受xxxxx喷水图片| 久久久久久电影| 亚洲一区二区3| 懂色av一区二区在线播放| 欧美人与z0zoxxxx视频| 国产农村妇女精品| 亚洲国产精品久久人人爱| 国产一区不卡视频| 欧美日韩国产大片| 国产精品免费观看视频| 日韩中文字幕区一区有砖一区 | 亚洲图片激情小说| 日韩影院精彩在线| 不卡一区二区中文字幕| 欧美不卡一区二区| 亚洲已满18点击进入久久| 国产精品一区久久久久| 欧美三级电影网站| 国产精品久久久久久久裸模| 美女久久久精品| 在线观看国产精品网站| 日本一区二区视频在线| 看电影不卡的网站| 欧美视频在线一区| 中文字幕一区视频| 国产精品一区二区三区99| 欧美日韩电影在线播放| 亚洲人成网站影音先锋播放| 国产精品自拍av| 欧美一级高清大全免费观看| 亚洲不卡av一区二区三区| 白白色亚洲国产精品| 精品国产百合女同互慰| 日韩国产在线观看一区| 欧美在线免费观看亚洲| 国产精品国模大尺度视频| 国产精品一二三| 日韩一区二区在线观看视频| 天堂va蜜桃一区二区三区| 91亚洲永久精品| 国产精品三级在线观看| 国产成人免费在线观看不卡| 欧美精品一区二区三区蜜桃| 免费高清在线视频一区·| 欧美精品三级日韩久久| 香蕉av福利精品导航| 欧美午夜片在线看| 亚洲一区二区三区四区在线免费观看 | 国产做a爰片久久毛片| 欧美一级专区免费大片| 免费高清成人在线| 欧美成人a视频| 国产一区在线观看麻豆| 欧美tickling挠脚心丨vk| 久久精品国产亚洲高清剧情介绍| 欧美一区二区三级| 麻豆久久久久久| 欧美变态口味重另类| 国产精品自拍一区| 中文字幕欧美激情| www.日韩av| 亚洲美女免费在线| 欧美日韩专区在线| 日韩高清电影一区| 精品国产人成亚洲区| 国产一区二区视频在线| 国产精品卡一卡二| 一本久道久久综合中文字幕| 亚洲一卡二卡三卡四卡| 欧美日韩国产一区| 久久99在线观看| 中文字幕高清一区| 色综合亚洲欧洲| 调教+趴+乳夹+国产+精品| 日韩三级伦理片妻子的秘密按摩| 精品中文字幕一区二区| 久久久久久久综合狠狠综合| 99精品1区2区| 亚洲高清不卡在线| 日韩精品综合一本久道在线视频| 国产一区在线看| 最新中文字幕一区二区三区| 欧美性猛交xxxxxx富婆| 麻豆精品一区二区| 中文字幕 久热精品 视频在线 | 亚洲成人在线网站| 欧美成人r级一区二区三区| 成人av在线影院| 天堂资源在线中文精品| 久久久久久久综合狠狠综合| 91免费视频网| 美腿丝袜亚洲一区| 国产精品福利影院| 欧美美女喷水视频| 国产成人aaaa| 亚洲v日本v欧美v久久精品| 久久久精品国产免大香伊| 91黄色激情网站| 激情丁香综合五月| 亚洲综合小说图片| 久久女同精品一区二区| 色天使久久综合网天天| 久久99精品网久久| 樱桃视频在线观看一区| 精品成人在线观看| 欧美色综合网站| 欧美日韩亚洲综合在线| 国产一区二区三区综合| 亚洲国产视频a|