VirtualBox

忽略:
時間撮記:
2011-3-3 下午01:48:16 (14 年 以前)
作者:
vboxsync
訊息:

rem: Re-synced to svn://svn.savannah.nongnu.org/qemu/trunk@5495 (repo UUID c046a42c-6fe2-441c-8c8c-71466251a162).

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/recompiler/softmmu_exec.h

    r17040 r36140  
    11/* Common softmmu definitions and inline routines.  */
    22
    3 #define ldul_user ldl_user
    4 #define ldul_kernel ldl_kernel
     3#define ldul_user       ldl_user
     4#define ldul_kernel     ldl_kernel
     5#define ldul_hypv       ldl_hypv
     6#define ldul_executive  ldl_executive
     7#define ldul_supervisor ldl_supervisor
     8
     9#include "softmmu_defs.h"
    510
    611#define ACCESS_TYPE 0
    7 #define MEMSUFFIX _kernel
     12#define MEMSUFFIX MMU_MODE0_SUFFIX
    813#define DATA_SIZE 1
    914#include "softmmu_header.h"
     
    2126
    2227#define ACCESS_TYPE 1
    23 #define MEMSUFFIX _user
     28#define MEMSUFFIX MMU_MODE1_SUFFIX
    2429#define DATA_SIZE 1
    2530#include "softmmu_header.h"
     
    3641#undef MEMSUFFIX
    3742
     43#if (NB_MMU_MODES >= 3)
     44
     45#define ACCESS_TYPE 2
     46#define MEMSUFFIX MMU_MODE2_SUFFIX
     47#define DATA_SIZE 1
     48#include "softmmu_header.h"
     49
     50#define DATA_SIZE 2
     51#include "softmmu_header.h"
     52
     53#define DATA_SIZE 4
     54#include "softmmu_header.h"
     55
     56#define DATA_SIZE 8
     57#include "softmmu_header.h"
     58#undef ACCESS_TYPE
     59#undef MEMSUFFIX
     60
     61#if (NB_MMU_MODES >= 4)
     62
     63#define ACCESS_TYPE 3
     64#define MEMSUFFIX MMU_MODE3_SUFFIX
     65#define DATA_SIZE 1
     66#include "softmmu_header.h"
     67
     68#define DATA_SIZE 2
     69#include "softmmu_header.h"
     70
     71#define DATA_SIZE 4
     72#include "softmmu_header.h"
     73
     74#define DATA_SIZE 8
     75#include "softmmu_header.h"
     76#undef ACCESS_TYPE
     77#undef MEMSUFFIX
     78
     79#if (NB_MMU_MODES > 4)
     80#error "NB_MMU_MODES > 4 is not supported for now"
     81#endif /* (NB_MMU_MODES > 4) */
     82#endif /* (NB_MMU_MODES == 4) */
     83#endif /* (NB_MMU_MODES >= 3) */
     84
    3885/* these access are slower, they must be as rare as possible */
    39 #define ACCESS_TYPE 2
     86#define ACCESS_TYPE (NB_MMU_MODES)
    4087#define MEMSUFFIX _data
    4188#define DATA_SIZE 1
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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