]> git.proxmox.com Git - mirror_qemu.git/commit - target/ppc/translate_init.c.inc
PPC: E500: Populate L1CFG0 SPR
authorAlexander Graf <agraf@suse.de>
Tue, 31 Jan 2012 02:46:55 +0000 (03:46 +0100)
committerAlexander Graf <agraf@suse.de>
Thu, 2 Feb 2012 01:47:49 +0000 (02:47 +0100)
commita496e8eeba51351af136734e475c947a3673dded
treeefce0e9235f433ab09f73b406e0faa09d3394e4f
parent8917f4dc62a081c684a1769d38c538df94db9cf0
PPC: E500: Populate L1CFG0 SPR

When running Linux on e500 with powersave-nap enabled, Linux tries to
read out the L1CFG0 register and calculates some things from it. Passing
0 there ends up in a division by 0, resulting in -1, resulting in badness.

So let's populate the L1CFG0 register with reasonable defaults. That way
guests aren't completely confused.

Reported-by: Shrijeet Mukherjee <shm@cumulusnetworks.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate_init.c