Made Addr a global type

--HG--
extra : convert_revision : 869bd9fa5d8591115ac9b4a7401eb2490986b835
This commit is contained in:
Gabe Black
2006-02-21 03:38:21 -05:00
parent 74d7cd1cea
commit 3f7979c99d
50 changed files with 58 additions and 143 deletions

View File

@@ -187,8 +187,6 @@ class IdeController;
*/
class IdeDisk : public SimObject
{
protected:
typedef TheISA::Addr Addr;
protected:
/** The IDE controller for this disk. */
IdeController *ctrl;

View File

@@ -53,8 +53,6 @@ class MemoryController;
*/
class PciConfigData : public SimObject
{
protected:
typedef TheISA::Addr Addr;
public:
/**
* Constructor to initialize the devices config space to 0.

View File

@@ -44,8 +44,6 @@ class Uart;
class Platform : public SimObject
{
protected:
typedef TheISA::Addr Addr;
public:
/** Pointer to the interrupt controller */
IntrControl *intrctrl;

View File

@@ -44,8 +44,6 @@ class PhysicalMemory;
*/
class SimpleDisk : public SimObject
{
protected:
typedef TheISA::Addr Addr;
public:
typedef uint64_t baddr_t;

View File

@@ -163,7 +163,7 @@ struct Info
/* namespace Regs */ }
inline const Regs::Info&
regInfo(TheISA::Addr daddr)
regInfo(Addr daddr)
{
static Regs::Info invalid = { 0, false, false, "invalid" };
static Regs::Info info [] = {
@@ -199,7 +199,7 @@ regInfo(TheISA::Addr daddr)
}
inline bool
regValid(TheISA::Addr daddr)
regValid(Addr daddr)
{
if (daddr > Regs::Size)
return false;

View File

@@ -55,8 +55,6 @@ class System;
class Tsunami : public Platform
{
protected:
typedef TheISA::Addr Addr;
public:
/** Max number of CPUs in a Tsunami */
static const int Max_CPUs = 64;