Made Addr a global type
--HG-- extra : convert_revision : 869bd9fa5d8591115ac9b4a7401eb2490986b835
This commit is contained in:
@@ -187,8 +187,6 @@ class IdeController;
|
||||
*/
|
||||
class IdeDisk : public SimObject
|
||||
{
|
||||
protected:
|
||||
typedef TheISA::Addr Addr;
|
||||
protected:
|
||||
/** The IDE controller for this disk. */
|
||||
IdeController *ctrl;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -44,8 +44,6 @@ class Uart;
|
||||
|
||||
class Platform : public SimObject
|
||||
{
|
||||
protected:
|
||||
typedef TheISA::Addr Addr;
|
||||
public:
|
||||
/** Pointer to the interrupt controller */
|
||||
IntrControl *intrctrl;
|
||||
|
||||
@@ -44,8 +44,6 @@ class PhysicalMemory;
|
||||
*/
|
||||
class SimpleDisk : public SimObject
|
||||
{
|
||||
protected:
|
||||
typedef TheISA::Addr Addr;
|
||||
public:
|
||||
typedef uint64_t baddr_t;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user