regfile.hh (2733:e0eac8fc5774) regfile.hh (2862:7bc3562e6405)
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
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;

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

81 PhysRegFile(unsigned _numPhysicalIntRegs,
82 unsigned _numPhysicalFloatRegs);
83
84 //Everything below should be pretty well identical to the normal
85 //register file that exists within AlphaISA class.
86 //The duplication is unfortunate but it's better than having
87 //different ways to access certain registers.
88
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
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;

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

81 PhysRegFile(unsigned _numPhysicalIntRegs,
82 unsigned _numPhysicalFloatRegs);
83
84 //Everything below should be pretty well identical to the normal
85 //register file that exists within AlphaISA class.
86 //The duplication is unfortunate but it's better than having
87 //different ways to access certain registers.
88
89 //Add these in later when everything else is in place
90// void serialize(std::ostream &os);
91// void unserialize(Checkpoint *cp, const std::string &section);
92
93 /** Reads an integer register. */
94 uint64_t readIntReg(PhysRegIndex reg_idx)
95 {
96 assert(reg_idx < numPhysicalIntRegs);
97
98 DPRINTF(IEW, "RegFile: Access to int register %i, has data "
99 "%#x\n", int(reg_idx), intRegFile[reg_idx]);
100 return intRegFile[reg_idx];

--- 210 unchanged lines hidden ---
89 /** Reads an integer register. */
90 uint64_t readIntReg(PhysRegIndex reg_idx)
91 {
92 assert(reg_idx < numPhysicalIntRegs);
93
94 DPRINTF(IEW, "RegFile: Access to int register %i, has data "
95 "%#x\n", int(reg_idx), intRegFile[reg_idx]);
96 return intRegFile[reg_idx];

--- 210 unchanged lines hidden ---