arch-arm: understandably initialize register permissions
authorCurtis Dunham <Curtis.Dunham@arm.com>
Wed, 6 Dec 2017 22:51:26 +0000 (16:51 -0600)
committerCurtis Dunham <curtis.dunham@arm.com>
Mon, 29 Jan 2018 22:31:36 +0000 (22:31 +0000)
commit9d04c02c51550c3654126f5e658bce623ba384d6
tree7dafcda92ca96af5ca880ac7e3a396eb9cbb065d
parentc1513c69cad2c26c6dcb66416e152952ceb0597e
arch-arm: understandably initialize register permissions

Move massive initialization routine to the bottom of miscregs.cc.
Additionally, share register metadata across ISA instances by
making lookUpMiscReg a static member of the ISA and only
initializing it once.

Change-Id: I6d6ab26200c4e781151cc6efd97ce2420e2bf4cc
Signed-off-by: Curtis Dunham <Curtis.Dunham@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jack Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/6803
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/isa.cc
src/arch/arm/isa.hh
src/arch/arm/miscregs.cc