Changeset 100184 in vbox for trunk/include/VBox/vmm/pdmdev.h
- Timestamp:
- Jun 16, 2023 6:51:39 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmdev.h
r99745 r100184 4611 4611 4612 4612 /** 4613 * Returns the architecture used for the guest. 4614 * 4615 * @returns CPU architecture enum. 4616 * @param pDevIns The device instance. 4617 */ 4618 DECLR3CALLBACKMEMBER(CPUMARCH, pfnCpuGetGuestArch,(PPDMDEVINS pDevIns)); 4619 4620 /** 4613 4621 * Returns the micro architecture used for the guest. 4614 4622 * … … 7359 7367 { 7360 7368 return pDevIns->CTX_SUFF(pHlp)->pfnPhysChangeMemBalloon(pDevIns, fInflate, cPages, paPhysPage); 7369 } 7370 7371 /** 7372 * @copydoc PDMDEVHLPR3::pfnCpuGetGuestArch 7373 */ 7374 DECLINLINE(CPUMARCH) PDMDevHlpCpuGetGuestArch(PPDMDEVINS pDevIns) 7375 { 7376 return pDevIns->CTX_SUFF(pHlp)->pfnCpuGetGuestArch(pDevIns); 7377 } 7378 7379 /** 7380 * Returns a flag whether the current guest CPU architecture is x86. 7381 * 7382 * @returns Flag whether the current guest architecture is x86. 7383 * @param pDevIns The device instance. 7384 */ 7385 DECLINLINE(bool) PDMDevHlpCpuIsGuestArchX86(PPDMDEVINS pDevIns) 7386 { 7387 return pDevIns->CTX_SUFF(pHlp)->pfnCpuGetGuestArch(pDevIns) == kCpumArch_X86; 7388 } 7389 7390 /** 7391 * Returns a flag whether the current guest CPU architecture is ARM. 7392 * 7393 * @returns Flag whether the current guest architecture is ARM. 7394 * @param pDevIns The device instance. 7395 */ 7396 DECLINLINE(bool) PDMDevHlpCpuIsGuestArchArm(PPDMDEVINS pDevIns) 7397 { 7398 return pDevIns->CTX_SUFF(pHlp)->pfnCpuGetGuestArch(pDevIns) == kCpumArch_Arm; 7361 7399 } 7362 7400
Note:
See TracChangeset
for help on using the changeset viewer.