VirtualBox

vbox的更動 15982 路徑 trunk/src/recompiler_new


忽略:
時間撮記:
2009-1-16 上午09:19:51 (16 年 以前)
作者:
vboxsync
訊息:

Set the limit to 0xffff when loading a segment register in real mode.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/recompiler_new/target-i386/translate.c

    r15973 r15982  
    27782778                  offsetof(CPUX86State,segs[seg_reg].base));
    27792779#ifdef VBOX
    2780     /** @todo shouldn't we set the limit here too? (to 0xffff) */
    27812780    int flags = DESC_P_MASK | DESC_S_MASK | DESC_W_MASK;
    27822781    if (seg_reg == R_CS)
     
    27842783    gen_op_movl_T0_im(flags);
    27852784    tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,segs[seg_reg].flags));
     2785
     2786    /* Set the limit to 0xffff. */
     2787    gen_op_movl_T0_im(0xffff);
     2788    tcg_gen_st32_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,segs[seg_reg].limit));
    27862789#endif
    27872790}
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette