target-ppc: enable PPC_MFTB for 44x
commitf40782361609c3d557b4dd3f0832741f375f73b6
authorBaojun Wang <wangbj@gmail.com>
Fri, 3 Jul 2009 11:27:39 +0000 (3 19:27 +0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 12 Jul 2009 23:58:12 +0000 (13 01:58 +0200)
treea5b6b71977a947a87807c5e514a97255e60f3740
parentfbe73008f23e8d582bdface53c5015ccc7fed62f
target-ppc: enable PPC_MFTB for 44x

According to PPC440 user manual, PPC 440 supports ``mftb'' even it's a
preserved instruction:

PPC440_UM2013.pdf, p.445, table A-3

when I compile a kernel (2.6.30, bamboo_defconfig/440EP &
canyonlands/460EX), I can see ``mftb'' by using ppc-xxx-objdump
vmlinux

I have also checked the ppc 440x[456], 460S, 464, they also should support mftb.

The following patch enable mftb for all ppc 440 variants, including:
440EP, 440GP, 440x4, 440x5 and 460

Signed-off-by: Baojun Wang <wangbj@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-ppc/translate_init.c