Changeset 15305 in vbox for trunk/src/recompiler_new
- Timestamp:
- Dec 11, 2008 3:31:29 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 40730
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler_new/VBoxREMWrapper.cpp
r15303 r15305 1944 1944 1945 1945 #ifdef VBOX_USE_BITNESS_SELECTOR 1946 static bool isRem64Needed(PVM pVM) 1947 { 1948 PCFGMNODE pRoot = CFGMR3GetRoot(pVM); 1949 uint64_t u64Value = 0; 1950 1951 CFGMR3QueryIntegerDef(pRoot, "Rem64Enabled", &u64Value, 0); 1952 1953 return u64Value == 1; 1954 } 1955 1946 1956 /** 1947 1957 * Loads real REM object, resolves all exports (imports are done by native loader). … … 1953 1963 size_t offFilename; 1954 1964 char szPath[RTPATH_MAX]; 1955 bool use64 = (VMR3GetGuestBitness(pVM) == 64); 1956 int rc = RTPathAppPrivateArch(szPath, sizeof(szPath) - 32); 1965 int rc = RTPathAppPrivateArch(szPath, sizeof(szPath) - 32); 1957 1966 AssertRCReturn(rc, rc); 1958 1967 offFilename = strlen(szPath); … … 1961 1970 * Load the VBoxREM32/64 object/DLL. 1962 1971 */ 1963 strcpy(&szPath[offFilename], use64? "/VBoxREM64" : "/VBoxREM32");1972 strcpy(&szPath[offFilename], isRem64Needed(pVM) ? "/VBoxREM64" : "/VBoxREM32"); 1964 1973 rc = RTLdrLoad(szPath, &g_ModREM2); 1965 1974 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.