Skip to content
Snippets Groups Projects
Commit 3ba55e39 authored by Cyril Bur's avatar Cyril Bur Committed by Alexander Graf
Browse files

PPC: Introduce the Virtual Time Base (VTB) SPR register


This patch adds basic support for the VTB.

PowerISA:
The Virtual Time Base (VTB) is a 64-bit incrementing counter.
Virtual Time Base increments at the same rate as the Time Base until its value
becomes 0xFFFF_FFFF_FFFF_FFFF (2 64 - 1); at the next increment its value
becomes 0x0000_0000_0000_0000. There is no interrupt or other indication when
this occurs.

The operation of the Virtual Time Base has the following additional
properties.
1. Loading a GPR from the Virtual Time Base has no effect on the accuracy of
the Virtual Time Base.
2. Copying the contents of a GPR to the Virtual Time Base replaces the
contents of the Virtual Time Base with the contents of the GPR.

Signed-off-by: default avatarCyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 6494ad9b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment