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

# hv_reg_t

The type that defines general registers.

```
struct hv_reg_t
```

## Topics

### General registers

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

The value that identifies the current program status register (CPSR).

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

The value that identifies the link register (LR).

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

The value that identifies the program counter (PC).

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

The value that identifies the frame pointer (FP).

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

The value that identifies the floating-point control register (FPCR).

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

The value that identifies the floating-point status register (FPSR).

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

The value that identifies register X0.

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

The value that identifies register X1.

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

The value that identifies register X2.

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

The value that identifies register X3.

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

The value that identifies register X4.

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

The value that identifies register X5.

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

The value that identifies register X6.

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

The value that identifies register X7.

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

The value that identifies register X8.

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

The value that identifies register X9.

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

The value that identifies register X10.

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

The value that identifies register X11.

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

The value that identifies register X12.

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

The value that identifies register X13.

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

The value that identifies register X14.

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

The value that identifies register X15.

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

The value that identifies register X16.

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

The value that identifies register X17.

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

The value that identifies register X18.

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

The value that identifies register X19.

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

The value that identifies register X20.

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

The value that identifies register X21.

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

The value that identifies register X22.

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

The value that identifies register X23.

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

The value that identifies register X24.

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

The value that identifies register X25.

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

The value that identifies register X26.

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

The value that identifies register X27.

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

The value that identifies register X28.

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

The value that identifies register X29.

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

The value that identifies register X30.

### Instance properties

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

A 32-bit unsigned integer that represents the general registers.

### Initializers

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

Creates a new general register instance initialized with the value you provide.

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

Creates a new general register instance initialized with the value you provide.

## Relationships

### Conforms To

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

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

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

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

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

---

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)