Implement missing parts of the logic for the POWER PURR
commit3a7f009abc010827815f10805e3558aa64c98e59
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 1 Apr 2011 04:15:12 +0000 (1 15:15 +1100)
committerAlexander Graf <agraf@suse.de>
Fri, 1 Apr 2011 16:34:54 +0000 (1 18:34 +0200)
tree9dba5eae0819290f47588d4f5a225ae681f04312
parentefdef95fee7e150ac065e7b33ffbebd09a5ac83c
Implement missing parts of the logic for the POWER PURR

The PURR (Processor Utilization Resource Register) is a register found
on recent POWER CPUs.  The guts of implementing it at least enough to
get by are already present in qemu, however some of the helper
functions needed to actually wire it up are missing.

This patch adds the necessary glue, so that the PURR can be wired up
when we implement newer POWER CPU targets which include it.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/helper.h
target-ppc/op_helper.c
target-ppc/translate_init.c