X86: Move the MSR lookup table out of the TLB and into its own file.
authorGabe Black <gblack@eecs.umich.edu>
Fri, 23 Sep 2011 09:42:22 +0000 (02:42 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 23 Sep 2011 09:42:22 +0000 (02:42 -0700)
commit40b6c9cb2efa3458d8addb90b802ee4d747a4924
treef5c05a2c65bc0dd77fc1ea0b189ced43651070bc
parent84f0a1bd91b8af5517711fba00533daddb2359e1
X86: Move the MSR lookup table out of the TLB and into its own file.

Translating MSR addresses into MSR register indices took a lot of space in the
TLB source and made looking around in that file awkward. This change moves
the lookup into its own file to get it out of the way. It also changes it from
a switch statement to a hash map which should hopefully be a little more
efficient.
src/arch/x86/regs/SConscript [new file with mode: 0644]
src/arch/x86/regs/msr.cc [new file with mode: 0644]
src/arch/x86/regs/msr.hh [new file with mode: 0644]
src/arch/x86/tlb.cc