class ISA : public SimObject
{
protected:
- MiscReg dummy;
- MiscReg miscRegs[NumMiscRegs];
+ RegVal dummy;
+ RegVal miscRegs[NumMiscRegs];
public:
typedef PowerISAParams Params;
{
}
- MiscReg
+ RegVal
readMiscRegNoEffect(int misc_reg) const
{
fatal("Power does not currently have any misc regs defined\n");
return dummy;
}
- MiscReg
+ RegVal
readMiscReg(int misc_reg, ThreadContext *tc)
{
fatal("Power does not currently have any misc regs defined\n");
}
void
- setMiscRegNoEffect(int misc_reg, MiscReg val)
+ setMiscRegNoEffect(int misc_reg, RegVal val)
{
fatal("Power does not currently have any misc regs defined\n");
}
void
- setMiscReg(int misc_reg, MiscReg val, ThreadContext *tc)
+ setMiscReg(int misc_reg, RegVal val, ThreadContext *tc)
{
fatal("Power does not currently have any misc regs defined\n");
}
PowerProcess::initState();
}
-PowerISA::IntReg
+RegVal
PowerLinuxProcess::getSyscallArg(ThreadContext *tc, int &i)
{
// Linux apparently allows more parameter than the ABI says it should.
}
void
-PowerLinuxProcess::setSyscallArg(ThreadContext *tc, int i, PowerISA::IntReg val)
+PowerLinuxProcess::setSyscallArg(ThreadContext *tc, int i, RegVal val)
{
// Linux apparently allows more parameter than the ABI says it should.
// This limit may need to be increased even further.
void initState();
- PowerISA::IntReg getSyscallArg(ThreadContext *tc, int &i);
+ RegVal getSyscallArg(ThreadContext *tc, int &i);
/// Explicitly import the otherwise hidden getSyscallArg
using Process::getSyscallArg;
- void setSyscallArg(ThreadContext *tc, int i, PowerISA::IntReg val);
+ void setSyscallArg(ThreadContext *tc, int i, RegVal val);
/// Array of syscall descriptors, indexed by call number.
static SyscallDesc syscallDescs[];
memState->setStackMin(roundDown(stack_min, pageSize));
}
-PowerISA::IntReg
+RegVal
PowerProcess::getSyscallArg(ThreadContext *tc, int &i)
{
assert(i < 5);
}
void
-PowerProcess::setSyscallArg(ThreadContext *tc, int i, PowerISA::IntReg val)
+PowerProcess::setSyscallArg(ThreadContext *tc, int i, RegVal val)
{
assert(i < 5);
tc->setIntReg(ArgumentReg0 + i, val);
public:
void argsInit(int intSize, int pageSize);
- PowerISA::IntReg getSyscallArg(ThreadContext *tc, int &i);
+ RegVal getSyscallArg(ThreadContext *tc, int &i);
/// Explicitly import the otherwise hidden getSyscallArg
using Process::getSyscallArg;
- void setSyscallArg(ThreadContext *tc, int i, PowerISA::IntReg val);
+ void setSyscallArg(ThreadContext *tc, int i, RegVal val);
void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value);
};
// be detected by it. Manually add it here.
const int MaxMiscDestRegs = PowerISAInst::MaxMiscDestRegs + 1;
-typedef RegVal IntReg;
-
-// Floating point register file entry type
-typedef RegVal FloatReg;
-typedef RegVal MiscReg;
-
// dummy typedef since we don't have CC regs
typedef uint8_t CCReg;