arm: Use a static_assert to test that miscRegName[] is complete
authorAndreas Sandberg <Andreas.Sandberg@arm.com>
Tue, 25 Sep 2012 16:49:40 +0000 (11:49 -0500)
committerAndreas Sandberg <Andreas.Sandberg@arm.com>
Tue, 25 Sep 2012 16:49:40 +0000 (11:49 -0500)
commit6f603e0807ef82f250bda4946d94186e7220dedf
tree26c905f698b7c3d0a0f26e7ccd42a93ca1dde01b
parent4544f3def42ae9b8c528223d8762ae3634c7124a
arm: Use a static_assert to test that miscRegName[] is complete

Instead of statically defining miscRegName to contain NUM_MISCREGS
elements, let the compiler determine the length of the array. This
allows us to use a static_assert to test that all registers are listed
in the name vector.
src/arch/arm/miscregs.hh