Took the Alpha prefix off of AlphaArguments, and made sure it was being used from TheISA:: rather than AlphaISA::

--HG--
extra : convert_revision : 17c143d3cbc2f58a7a9d01366a8f649810ff7f33
This commit is contained in:
Gabe Black 2006-11-06 18:28:10 -05:00
parent 1ffff78ca9
commit e39de58d21
10 changed files with 31 additions and 29 deletions

View file

@ -35,7 +35,7 @@
using namespace AlphaISA;
AlphaArguments::Data::~Data()
Arguments::Data::~Data()
{
while (!data.empty()) {
delete [] data.front();
@ -44,7 +44,7 @@ AlphaArguments::Data::~Data()
}
char *
AlphaArguments::Data::alloc(size_t size)
Arguments::Data::alloc(size_t size)
{
char *buf = new char[size];
data.push_back(buf);
@ -52,7 +52,7 @@ AlphaArguments::Data::alloc(size_t size)
}
uint64_t
AlphaArguments::getArg(bool fp)
Arguments::getArg(bool fp)
{
if (number < 6) {
if (fp)

View file

@ -41,7 +41,7 @@ class ThreadContext;
namespace AlphaISA {
class AlphaArguments
class Arguments
{
protected:
ThreadContext *tc;
@ -65,62 +65,62 @@ class AlphaArguments
RefCountingPtr<Data> data;
public:
AlphaArguments(ThreadContext *ctx, int n = 0)
Arguments(ThreadContext *ctx, int n = 0)
: tc(ctx), number(n), data(NULL)
{ assert(number >= 0); data = new Data;}
AlphaArguments(const AlphaArguments &args)
Arguments(const Arguments &args)
: tc(args.tc), number(args.number), data(args.data) {}
~AlphaArguments() {}
~Arguments() {}
ThreadContext *getThreadContext() const { return tc; }
const AlphaArguments &operator=(const AlphaArguments &args) {
const Arguments &operator=(const Arguments &args) {
tc = args.tc;
number = args.number;
data = args.data;
return *this;
}
AlphaArguments &operator++() {
Arguments &operator++() {
++number;
assert(number >= 0);
return *this;
}
AlphaArguments operator++(int) {
AlphaArguments args = *this;
Arguments operator++(int) {
Arguments args = *this;
++number;
assert(number >= 0);
return args;
}
AlphaArguments &operator--() {
Arguments &operator--() {
--number;
assert(number >= 0);
return *this;
}
AlphaArguments operator--(int) {
AlphaArguments args = *this;
Arguments operator--(int) {
Arguments args = *this;
--number;
assert(number >= 0);
return args;
}
const AlphaArguments &operator+=(int index) {
const Arguments &operator+=(int index) {
number += index;
assert(number >= 0);
return *this;
}
const AlphaArguments &operator-=(int index) {
const Arguments &operator-=(int index) {
number -= index;
assert(number >= 0);
return *this;
}
AlphaArguments operator[](int index) {
return AlphaArguments(tc, index);
Arguments operator[](int index) {
return Arguments(tc, index);
}
template <class T>

View file

@ -49,7 +49,7 @@ DebugPrintkEvent::process(ThreadContext *tc)
DPRINTFN("");
}
AlphaISA::AlphaArguments args(tc);
TheISA::Arguments args(tc);
Printk(args);
SkipFuncEvent::process(tc);
}

View file

@ -39,7 +39,7 @@ using namespace std;
void
Printk(AlphaISA::AlphaArguments args)
Printk(TheISA::Arguments args)
{
char *p = (char *)args++;

View file

@ -32,8 +32,10 @@
#ifndef __PRINTK_HH__
#define __PRINTK_HH__
class AlphaISA::AlphaArguments;
#include "arch/isa_specific.hh"
void Printk(AlphaISA::AlphaArguments args);
class TheISA::Arguments;
void Printk(TheISA::Arguments args);
#endif // __PRINTK_HH__

View file

@ -47,7 +47,7 @@ using namespace TheISA;
namespace tru64 {
void
DumpMbuf(AlphaArguments args)
DumpMbuf(Arguments args)
{
ThreadContext *tc = args.getThreadContext();
Addr addr = (Addr)args;

View file

@ -34,7 +34,7 @@
#include "arch/arguments.hh"
namespace tru64 {
void DumpMbuf(AlphaISA::AlphaArguments args);
void DumpMbuf(TheISA::Arguments args);
}
#endif // __DUMP_MBUF_HH__

View file

@ -42,7 +42,7 @@ using namespace std;
namespace tru64 {
void
Printf(AlphaISA::AlphaArguments args)
Printf(TheISA::Arguments args)
{
char *p = (char *)args++;

View file

@ -34,7 +34,7 @@
#include "arch/arguments.hh"
namespace tru64 {
void Printf(AlphaISA::AlphaArguments args);
void Printf(TheISA::Arguments args);
}
#endif // __PRINTF_HH__

View file

@ -81,7 +81,7 @@ PrintfEvent::process(ThreadContext *tc)
if (DTRACE(Printf)) {
DebugOut() << curTick << ": " << tc->getCpuPtr()->name() << ": ";
AlphaArguments args(tc);
Arguments args(tc);
tru64::Printf(args);
}
}
@ -93,7 +93,7 @@ DebugPrintfEvent::process(ThreadContext *tc)
if (!raw)
DebugOut() << curTick << ": " << tc->getCpuPtr()->name() << ": ";
AlphaArguments args(tc);
Arguments args(tc);
tru64::Printf(args);
}
}
@ -102,7 +102,7 @@ void
DumpMbufEvent::process(ThreadContext *tc)
{
if (DTRACE(DebugPrintf)) {
AlphaArguments args(tc);
Arguments args(tc);
tru64::DumpMbuf(args);
}
}