Make clang >= 3.5 happy when compiling build/ARM/gem5.opt on OSX.
* @param pkt Packet describing this request
* @return number of ticks it took to complete
*/
- virtual Tick read(PacketPtr pkt);
+ Tick read(PacketPtr pkt) override;
/**
* Write command sent to the device
* @param pkt Packet describing this request
* @return number of ticks it took to complete
*/
- virtual Tick write(PacketPtr pkt);
+ Tick write(PacketPtr pkt) override;
void serialize(CheckpointOut &cp) const override;
void unserialize(CheckpointIn &cp) override;
- void startup();
- void init();
+ void startup() override;
+ void init() override;
private:
DVFSHandler *dvfsHandler;
};
/** Device access functions Inherrited from AbstractNVM*/
- virtual void initializeMemory(uint64_t disk_size, uint32_t sector_size)
+ void initializeMemory(uint64_t disk_size, uint32_t sector_size) override
{
initializeFlash(disk_size, sector_size);
}
- virtual void readMemory(uint64_t address, uint32_t amount,
- Callback *event)
+ void readMemory(uint64_t address, uint32_t amount,
+ Callback *event) override
{
accessDevice(address, amount, event, ActionRead);
}
- virtual void writeMemory(uint64_t address, uint32_t amount,
- Callback *event)
+
+ void writeMemory(uint64_t address, uint32_t amount,
+ Callback *event) override
{
accessDevice(address, amount, event, ActionWrite);
}
bool getUnknownPages(uint32_t index);
/**Stats register function*/
- void regStats();
+ void regStats() override;
/** Disk sizes in bytes */
uint64_t diskSize;
/** Return the address ranges used by the Gic
* This is the distributor address + all cpu addresses
*/
- virtual AddrRangeList getAddrRanges() const;
+ AddrRangeList getAddrRanges() const override;
/** A PIO read to the device, immediately split up into
* readDistributor() or readCpu()
*/
- virtual Tick read(PacketPtr pkt);
+ Tick read(PacketPtr pkt) override;
/** A PIO read to the device, immediately split up into
* writeDistributor() or writeCpu()
*/
- virtual Tick write(PacketPtr pkt);
+ Tick write(PacketPtr pkt) override;
/** @} */
/** @{ */
* Depending on the configuration, the gic will pass this interrupt
* on through to a CPU.
* @param number number of interrupt to send */
- void sendInt(uint32_t number);
+ void sendInt(uint32_t number) override;
/** Interface call for private peripheral interrupts */
- void sendPPInt(uint32_t num, uint32_t cpu);
+ void sendPPInt(uint32_t num, uint32_t cpu) override;
/** Clear an interrupt from a device that is connected to the Gic
* Depending on the configuration, the gic may de-assert it's cpu line
* @param number number of interrupt to send */
- void clearInt(uint32_t number);
+ void clearInt(uint32_t number) override;
/** Clear a (level-sensitive) PPI */
- void clearPPInt(uint32_t num, uint32_t cpu);
+ void clearPPInt(uint32_t num, uint32_t cpu) override;
/** @} */
/** @{ */
Pl050(const Params *p);
- virtual Tick read(PacketPtr pkt);
- virtual Tick write(PacketPtr pkt);
+ Tick read(PacketPtr pkt) override;
+ Tick write(PacketPtr pkt) override;
- virtual void mouseAt(uint16_t x, uint16_t y, uint8_t buttons);
- virtual void keyPress(uint32_t key, bool down);
+ void mouseAt(uint16_t x, uint16_t y, uint8_t buttons) override;
+ void keyPress(uint32_t key, bool down) override;
void serialize(CheckpointOut &cp) const override;
void unserialize(CheckpointIn &cp) override;
Pl111(const Params *p);
~Pl111();
- virtual Tick read(PacketPtr pkt);
- virtual Tick write(PacketPtr pkt);
+ Tick read(PacketPtr pkt) override;
+ Tick write(PacketPtr pkt) override;
void serialize(CheckpointOut &cp) const override;
void unserialize(CheckpointIn &cp) override;
*
* @return a list of non-overlapping address ranges
*/
- AddrRangeList getAddrRanges() const;
+ AddrRangeList getAddrRanges() const override;
};
#endif
* @param pkt The memory request.
* @param data Where to put the data.
*/
- virtual Tick read(PacketPtr pkt);
+ Tick read(PacketPtr pkt) override;
/**
* Handle writes to the device
* @param pkt The memory request.
* @param data the data
*/
- virtual Tick write(PacketPtr pkt);
+ Tick write(PacketPtr pkt) override;
void serialize(CheckpointOut &cp) const override;
void unserialize(CheckpointIn &cp) override;
* @param pkt The memory request.
* @return Returns latency of device read
*/
- virtual Tick read(PacketPtr pkt);
+ Tick read(PacketPtr pkt) override;
/**
* Handle a write to the device.
* @param pkt The memory request.
* @return Returns latency of device write
*/
- virtual Tick write(PacketPtr pkt);
+ Tick write(PacketPtr pkt) override;
void serialize(CheckpointOut &cp) const override;
void unserialize(CheckpointIn &cp) override;
* @param pkt The memory request.
* @param data Where to put the data.
*/
- virtual Tick read(PacketPtr pkt);
+ Tick read(PacketPtr pkt) override;
/**
* All writes are simply ignored.
* @param pkt The memory request.
* @param data the data
*/
- virtual Tick write(PacketPtr pkt);
+ Tick write(PacketPtr pkt) override;
void serialize(CheckpointOut &cp) const override;
/**
* Address range functions
*/
- AddrRangeList getAddrRanges() const;
+ AddrRangeList getAddrRanges() const override;
/**
* register access functions
*/
- Tick read(PacketPtr pkt);
- Tick write(PacketPtr pkt);
+ Tick read(PacketPtr pkt) override;
+ Tick write(PacketPtr pkt) override;
// end of access functions
/**
void readGarbage();
/**register statistics*/
- void regStats();
+ void regStats() override;
/**
* Host controller information
}
VGic(const Params *p);
- virtual AddrRangeList getAddrRanges() const;
+ AddrRangeList getAddrRanges() const override;
- virtual Tick read(PacketPtr pkt);
- virtual Tick write(PacketPtr pkt);
+ Tick read(PacketPtr pkt) override;
+ Tick write(PacketPtr pkt) override;
void serialize(CheckpointOut &cp) const override;
void unserialize(CheckpointIn &cp) override;