kvm, arm: Fix compilation errors due to API changes

The checkpoint changes, along with the SMT patches have changed a
number of APIs. Adapt the ArmKvmCPU accordingly.
This commit is contained in:
Victor Garcia 2015-10-29 08:48:23 -04:00
parent d8b7a652e1
commit 8427d05daa
5 changed files with 7 additions and 7 deletions

View file

@ -270,8 +270,8 @@ ArmKvmCPU::startup()
Tick
ArmKvmCPU::kvmRun(Tick ticks)
{
bool simFIQ(interrupts->checkRaw(INT_FIQ));
bool simIRQ(interrupts->checkRaw(INT_IRQ));
bool simFIQ(interrupts[0]->checkRaw(INT_FIQ));
bool simIRQ(interrupts[0]->checkRaw(INT_IRQ));
if (fiqAsserted != simFIQ) {
fiqAsserted = simFIQ;

View file

@ -123,7 +123,7 @@ ArmV8KvmCPU::~ArmV8KvmCPU()
}
void
ArmV8KvmCPU::dump()
ArmV8KvmCPU::dump() const
{
inform("Integer registers:\n");
inform(" PC: %s\n", getAndFormatOneReg(INT_REG(regs.pc)));

View file

@ -83,7 +83,7 @@ class ArmV8KvmCPU : public BaseArmKvmCPU
ArmV8KvmCPU(ArmV8KvmCPUParams *params);
virtual ~ArmV8KvmCPU();
void dump() override;
void dump() const override;
protected:
void updateKvmState() override;

View file

@ -86,8 +86,8 @@ BaseArmKvmCPU::startup()
Tick
BaseArmKvmCPU::kvmRun(Tick ticks)
{
bool simFIQ(interrupts->checkRaw(INT_FIQ));
bool simIRQ(interrupts->checkRaw(INT_IRQ));
bool simFIQ(interrupts[0]->checkRaw(INT_FIQ));
bool simIRQ(interrupts[0]->checkRaw(INT_IRQ));
if (fiqAsserted != simFIQ) {
fiqAsserted = simFIQ;

View file

@ -80,7 +80,7 @@ class KvmGic : public BaseGic
void drainResume() override { verifyMemoryMode(); }
void serialize(CheckpointOut &cp) const override;
void unserialize(Checkpoint *cp, const std::string &sec) override;
void unserialize(CheckpointIn &cp) override;
public: // PioDevice
AddrRangeList getAddrRanges() const { return addrRanges; }