msr.hh (9875:5cfad3486991) msr.hh (11168:f98eb2da15a4)
1/*
2 * Copyright (c) 2011 Google
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 17 unchanged lines hidden (view full) ---

26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Gabe Black
29 */
30
31#ifndef __ARCH_X86_REG_MSR_HH__
32#define __ARCH_X86_REG_MSR_HH__
33
1/*
2 * Copyright (c) 2011 Google
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 17 unchanged lines hidden (view full) ---

26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Gabe Black
29 */
30
31#ifndef __ARCH_X86_REG_MSR_HH__
32#define __ARCH_X86_REG_MSR_HH__
33
34#include <unordered_map>
35
34#include "arch/x86/regs/misc.hh"
36#include "arch/x86/regs/misc.hh"
35#include "base/hashmap.hh"
36#include "base/types.hh"
37
38namespace X86ISA
39{
40
37#include "base/types.hh"
38
39namespace X86ISA
40{
41
41typedef m5::hash_map<Addr, MiscRegIndex> MsrMap;
42typedef std::unordered_map<Addr, MiscRegIndex> MsrMap;
42
43/**
44 * Map between MSR addresses and their corresponding misc registers.
45 *
46 * @note This map is usually only used when enumeration of supported
47 * MSRs is needed (e.g., in virtualized CPUs). Code that needs to
48 * look-up specific MSRs should use msrAddrToIndex().
49 */

--- 18 unchanged lines hidden ---
43
44/**
45 * Map between MSR addresses and their corresponding misc registers.
46 *
47 * @note This map is usually only used when enumeration of supported
48 * MSRs is needed (e.g., in virtualized CPUs). Code that needs to
49 * look-up specific MSRs should use msrAddrToIndex().
50 */

--- 18 unchanged lines hidden ---