]> git.proxmox.com Git - mirror_qemu.git/commit - target/ppc/translate_init.c.inc
PPC: Introduce the Virtual Time Base (VTB) SPR register
authorCyril Bur <cyril.bur@au1.ibm.com>
Mon, 2 Mar 2015 06:55:38 +0000 (17:55 +1100)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Mar 2015 14:00:07 +0000 (15:00 +0100)
commit3ba55e399f7637d2b4054bcc30228cd2d0883823
tree18242d4eac1fe091f14732da0251f187b9718848
parent6494ad9bf4f6e1561f078337d6d82018fd6e7516
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: Cyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/cpu.h
target-ppc/translate_init.c