<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Hypervisor",
  "identifier" : "/documentation/Hypervisor/hv_x86_reg_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Hypervisor"
    ],
    "preciseIdentifier" : "c:@EA@hv_x86_reg_t"
  },
  "title" : "hv_x86_reg_t"
}
-->

# hv_x86_reg_t

The type that defines x86 architectural registers.

```
struct hv_x86_reg_t
```

## Topics

### Registers

[`HV_X86_RIP`](/documentation/Hypervisor/HV_X86_RIP)

The value that identifies the x86 instruction pointer register.

[`HV_X86_RFLAGS`](/documentation/Hypervisor/HV_X86_RFLAGS)

The value that identifies the x86 status register.

[`HV_X86_RAX`](/documentation/Hypervisor/HV_X86_RAX)

The value that identifies the x86 accumulator register.

[`HV_X86_RCX`](/documentation/Hypervisor/HV_X86_RCX)

The value that identifies the x86 counter register.

[`HV_X86_RDX`](/documentation/Hypervisor/HV_X86_RDX)

The value that identifies the x86 data register.

[`HV_X86_RBX`](/documentation/Hypervisor/HV_X86_RBX)

The value that identifies the x86 base register.

[`HV_X86_RSI`](/documentation/Hypervisor/HV_X86_RSI)

The value that identifies the x86 source index register.

[`HV_X86_RDI`](/documentation/Hypervisor/HV_X86_RDI)

The value that identifies the x86 destination index register.

[`HV_X86_RSP`](/documentation/Hypervisor/HV_X86_RSP)

The value that identifies the x86 stack pointer register.

[`HV_X86_RBP`](/documentation/Hypervisor/HV_X86_RBP)

The value that identifies the x86 base pointer register.

[`HV_X86_R8`](/documentation/Hypervisor/HV_X86_R8)

The value that identifies the x86 general-purpose register R8.

[`HV_X86_R9`](/documentation/Hypervisor/HV_X86_R9)

The value that identifies the x86 general-purpose register R9.

[`HV_X86_R10`](/documentation/Hypervisor/HV_X86_R10)

The value that identifies the x86 general-purpose register R10.

[`HV_X86_R11`](/documentation/Hypervisor/HV_X86_R11)

The value that identifies the x86 general-purpose register R11.

[`HV_X86_R12`](/documentation/Hypervisor/HV_X86_R12)

The value that identifies the x86 general-purpose register R12.

[`HV_X86_R13`](/documentation/Hypervisor/HV_X86_R13)

The value that identifies the x86 general-purpose register R13.

[`HV_X86_R14`](/documentation/Hypervisor/HV_X86_R14)

The value that identifies the x86 general-purpose register R14.

[`HV_X86_R15`](/documentation/Hypervisor/HV_X86_R15)

The value that identifies the x86 general-purpose register R15.

[`HV_X86_CS`](/documentation/Hypervisor/HV_X86_CS)

The value that identifies the x86 code-segment register.

[`HV_X86_SS`](/documentation/Hypervisor/HV_X86_SS)

The value that identifies the x86 stack-segment register.

[`HV_X86_DS`](/documentation/Hypervisor/HV_X86_DS)

The value that identifies the x86 data-segment register.

[`HV_X86_ES`](/documentation/Hypervisor/HV_X86_ES)

The value that identifies the x86 segment register ES.

[`HV_X86_FS`](/documentation/Hypervisor/HV_X86_FS)

The value that identifies the x86 segment register FS.

[`HV_X86_GS`](/documentation/Hypervisor/HV_X86_GS)

The value that identifies the x86 segment register GS.

[`HV_X86_IDT_BASE`](/documentation/Hypervisor/HV_X86_IDT_BASE)

The value that identifies the x86 interrupt descriptor, table-base register.

[`HV_X86_IDT_LIMIT`](/documentation/Hypervisor/HV_X86_IDT_LIMIT)

The value that identifies the x86 interrupt descriptor, table-base register.

[`HV_X86_GDT_BASE`](/documentation/Hypervisor/HV_X86_GDT_BASE)

The value that identifies the x86 global descriptor, table-base register.

[`HV_X86_GDT_LIMIT`](/documentation/Hypervisor/HV_X86_GDT_LIMIT)

The value that identifies the x86 global descriptor, table-limit register.

[`HV_X86_LDTR`](/documentation/Hypervisor/HV_X86_LDTR)

The value that identifies the x86 local descriptor, table register.

[`HV_X86_LDT_BASE`](/documentation/Hypervisor/HV_X86_LDT_BASE)

The value that identifies the x86 local descriptor, table-base register.

[`HV_X86_LDT_LIMIT`](/documentation/Hypervisor/HV_X86_LDT_LIMIT)

The value that identifies the x86 local descriptor, table-limit register.

[`HV_X86_LDT_AR`](/documentation/Hypervisor/HV_X86_LDT_AR)

The value that identifies the x86 local descriptor table, access-rights register.

[`HV_X86_TR`](/documentation/Hypervisor/HV_X86_TR)

The value that identifies the x86 task register.

[`HV_X86_TSS_BASE`](/documentation/Hypervisor/HV_X86_TSS_BASE)

The value that identifies the x86 task-state, segment-base register.

[`HV_X86_TSS_LIMIT`](/documentation/Hypervisor/HV_X86_TSS_LIMIT)

The value that identifies the x86 task state segment limit register.

[`HV_X86_TSS_AR`](/documentation/Hypervisor/HV_X86_TSS_AR)

The value that identifies the x86 task-state, segment-access, rights register.

[`HV_X86_CR0`](/documentation/Hypervisor/HV_X86_CR0)

The value that identifies the x86 control-register CR0.

[`HV_X86_CR1`](/documentation/Hypervisor/HV_X86_CR1)

The value that identifies the x86 control-register CR1.

[`HV_X86_CR2`](/documentation/Hypervisor/HV_X86_CR2)

The value that identifies the x86 control-register CR2.

[`HV_X86_CR3`](/documentation/Hypervisor/HV_X86_CR3)

The value that identifies the x86 control-register CR3.

[`HV_X86_CR4`](/documentation/Hypervisor/HV_X86_CR4)

The value that identifies the x86 control-register CR4.

[`HV_X86_DR0`](/documentation/Hypervisor/HV_X86_DR0)

The value that identifies the x86 debug-register DR0.

[`HV_X86_DR1`](/documentation/Hypervisor/HV_X86_DR1)

The value that identifies the x86 debug-register DR1.

[`HV_X86_DR2`](/documentation/Hypervisor/HV_X86_DR2)

The value that identifies the x86 debug-register DR2.

[`HV_X86_DR3`](/documentation/Hypervisor/HV_X86_DR3)

The value that identifies the x86 debug-register DR3.

[`HV_X86_DR4`](/documentation/Hypervisor/HV_X86_DR4)

The value that identifies the x86 debug-register DR4.

[`HV_X86_DR5`](/documentation/Hypervisor/HV_X86_DR5)

The value that identifies the x86 debug-register DR5.

[`HV_X86_DR6`](/documentation/Hypervisor/HV_X86_DR6)

The value that identifies the x86 debug-register DR6.

[`HV_X86_DR7`](/documentation/Hypervisor/HV_X86_DR7)

The value that identifies the x86 debug-register DR7.

[`HV_X86_TPR`](/documentation/Hypervisor/HV_X86_TPR)

The value that identifies the x86 task-priority register.

[`HV_X86_XCR0`](/documentation/Hypervisor/HV_X86_XCR0)

The value that identifies the x86 extended-control register.

[`HV_X86_REGISTERS_MAX`](/documentation/Hypervisor/HV_X86_REGISTERS_MAX)

The value that identifies the maximum value of x86 register constants.

### Initializers

[`init(_:)`](/documentation/Hypervisor/hv_x86_reg_t/init(_:))

Creates a new x86 architectural register instance.

[`init(rawValue:)`](/documentation/Hypervisor/hv_x86_reg_t/init(rawValue:))

Creates a new x86 architectural register instance.

### Raw Value

[`rawValue`](/documentation/Hypervisor/hv_x86_reg_t/rawValue)

An unsigned 32-bit integer representing the x86 architectural registers.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)