htinst

Hypervisor Trap Instruction Register

When a trap is taken into HS-mode, mtinst is written with a value that, if nonzero, provides information about the instruction that trapped, to assist software in handling the trap. The values that may be written to mtinst on a trap are documented in TODO.

htinst is a WARL register that need only be able to hold the values that the implementation may automatically write to it on a trap.

Attributes

Defining Extension

  • H, version >= 0

CSR Address

0x64a

Length

32-bit

64-bit

Privilege Mode

S

Format

This CSR format changes dynamically.

svg
svg

Field Summary

Name Location Type Reset Value

VALUE

31:0

63:0

RW-H
RO

UNDEFINED_LEGAL

Fields

VALUE

Location
  • 31:0 when CSR[mstatus].SXL == 0

  • 63:0 when CSR[mstatus].SXL == 1

Description

Exception-speicific information for a trap into HS-mode.

Type
RW-H
RO
Reset value

UNDEFINED_LEGAL