Deleted Added
sdiff udiff text old ( 9046:a1104cc13db2 ) new ( 9917:7274310be1bb )
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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

45#include "arch/x86/regs/misc.hh"
46#include "arch/x86/x86_traits.hh"
47
48namespace X86ISA
49{
50using X86ISAInst::MaxInstSrcRegs;
51using X86ISAInst::MaxInstDestRegs;
52using X86ISAInst::MaxMiscDestRegs;
53const int NumMiscArchRegs = NUM_MISCREGS;
54const int NumMiscRegs = NUM_MISCREGS;
55
56const int NumIntArchRegs = NUM_INTREGS;
57const int NumIntRegs =
58 NumIntArchRegs + NumMicroIntRegs +
59 NumPseudoIntRegs + NumImplicitIntRegs;
60
61//Each 128 bit xmm register is broken into two effective 64 bit registers.
62const int NumFloatRegs =
63 NumMMXRegs + 2 * NumXMMRegs + NumMicroFpRegs;
64const int NumFloatArchRegs = NumFloatRegs + 8;
65
66// These enumerate all the registers for dependence tracking.
67enum DependenceTags {
68 //There are 16 microcode registers at the moment. This is an
69 //unusually large constant to make sure there isn't overflow.
70 FP_Base_DepTag = 128,
71 Ctrl_Base_DepTag =
72 FP_Base_DepTag +
73 //mmx/x87 registers
74 8 +
75 //xmm registers
76 16 * 2 +
77 //The microcode fp registers
78 8 +
79 //The indices that are mapped over the fp stack
80 8,
81 Max_DepTag = Ctrl_Base_DepTag + NumMiscRegs
82};
83
84// semantically meaningful register indices
85//There is no such register in X86
86const int ZeroReg = NUM_INTREGS;
87const int StackPointerReg = INTREG_RSP;
88//X86 doesn't seem to have a link register

--- 29 unchanged lines hidden ---