PPC: booke206: Check for min/max TLB entry size
commit5935ee072d6fbcdf28ff6132ba6d8c3a1356bb0a
authorAlexander Graf <agraf@suse.de>
Fri, 20 Jan 2012 03:07:51 +0000 (20 04:07 +0100)
committerAlexander Graf <agraf@suse.de>
Thu, 2 Feb 2012 01:47:46 +0000 (2 02:47 +0100)
tree81c5a4f4072c7f32ccb959228720f7b9277d924f
parenta1ef618a3768cc114b6fae4099af95df87654a04
PPC: booke206: Check for min/max TLB entry size

When setting a TLB entry, we need to check if the TLB we're putting it in
actually supports the given size. According to the 2.06 PowerPC ISA, a
value that's out of range can either be redefined to something implementation
dependent or we can raise an illegal opcode exception. We do the latter.

Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/op_helper.c