38 #include <sys/types.h>
47 #include "debug/SimpleDisk.hh"
48 #include "debug/SimpleDiskData.hh"
69 panic(
"Not reading a multiple of a sector (count = %d)", count);
77 DDUMP(SimpleDiskData, data, count);
85 panic(
"unimplemented!\n");
88 uint8_t *
data = physmem->dma_addr(addr, count);
90 panic(
"dma out of range! write addr=%#x count=%d\n", addr, count);
97 SimpleDiskParams::create()
#define DDUMP(x, data, count)
PortProxy physProxy
Port to physical memory used for writing object files into ram at boot.
PortProxy Object Declaration.
void write(Addr addr, baddr_t block, int count)
virtual std::streampos write(const uint8_t *data, std::streampos offset)=0
SimpleDisk(const Params *p)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
void read(Addr addr, baddr_t block, int count) const
virtual std::streampos read(uint8_t *data, std::streampos offset) const =0
virtual void writeBlob(Addr addr, const uint8_t *p, int size) const
Write size bytes from p to address.
Abstract superclass for simulation objects.