]> git.proxmox.com Git - mirror_qemu.git/commit - target-ppc/translate_init.c
target-ppc: permit linux-user to read PVR
authorNathan Froyd <froydnj@codesourcery.com>
Fri, 5 Jun 2009 01:45:03 +0000 (18:45 -0700)
committermalc <av1474@comtv.ru>
Tue, 23 Jun 2009 17:11:22 +0000 (21:11 +0400)
commita139aa17515032993bad21415dd55e3033f7c664
tree62ee0f08d84cbc63aadc79bf4d1eeae493a92ef1
parent913bbbca4eac9fc9ed927e2b2da184850f32ff52
target-ppc: permit linux-user to read PVR

Access to the PVR SPR is normally forbidden from userspace apps.  The
Linux kernel, however, fixes up reads in the appropriate trap handler.
To permit applications that read PVR to run on QEMU, then, we need to
implement the same handling of PVR reads.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: malc <av1474@comtv.ru>
target-ppc/translate_init.c