PPC: Add PIR register to POWER7 CPU
authorNathan Whitehorn <nwhitehorn@freebsd.org>
Sat, 3 Mar 2012 06:36:36 +0000 (06:36 +0000)
committerAlexander Graf <agraf@suse.de>
Thu, 15 Mar 2012 12:12:11 +0000 (13:12 +0100)
commit2e06214f22e080be4a8a17b0fae3b4c03b0aa3ea
treed756433c55824a60c8a3f670ecf5eb3a95e548ef
parent76ab9583cea5c742f32743cc65abc326719bd646
PPC: Add PIR register to POWER7 CPU

The POWER7 emulation is missing the Processor Identification Register,
mandatory in recent POWER CPUs, that is required for SMP on at least
some operating systems (e.g. FreeBSD) to function properly. This patch
copies the existing PIR code from the other CPUs that implement it.

Signed-off-by: Nathan Whitehorn <nwhitehorn@freebsd.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate_init.c