Deleted Added
sdiff udiff text old ( 8902:75b524b64c28 ) new ( 9022:bb25e7646c41 )
full compact
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

38 */
39
40#ifndef __ARCH_X86_ISATRAITS_HH__
41#define __ARCH_X86_ISATRAITS_HH__
42
43#include "arch/x86/types.hh"
44#include "arch/x86/x86_traits.hh"
45#include "base/types.hh"
46#include "cpu/static_inst_fwd.hh"
47
48namespace LittleEndianGuest {}
49
50namespace X86ISA
51{
52 //This makes sure the little endian version of certain functions
53 //are used.
54 using namespace LittleEndianGuest;

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

64 const int LogVMPageSize = 12;
65 const int VMPageSize = (1 << LogVMPageSize);
66
67 const int PageShift = 12;
68 const int PageBytes = 1ULL << PageShift;
69
70 const int BranchPredAddrShiftAmt = 0;
71
72 StaticInstPtr decodeInst(ExtMachInst);
73
74 // Memory accesses can be unaligned
75 const bool HasUnalignedMemAcc = true;
76
77 const ExtMachInst NoopMachInst = {
78 0x0, // No legacy prefixes.
79 0x0, // No rex prefix.
80 { 1, 0x0, 0x0, 0x90 }, // One opcode byte, 0x90.
81 0x0, 0x0, // No modrm or sib.
82 0, 0, // No immediate or displacement.
83 8, 8, 8, // All sizes are 8.
84 0, // Displacement size is 0.
85 SixtyFourBitMode // Behave as if we're in 64 bit
86 // mode (this doesn't actually matter).
87 };
88}
89
90#endif // __ARCH_X86_ISATRAITS_HH__