aboutsummaryrefslogtreecommitdiff
path: root/riscv/devices.cc
AgeCommit message (Collapse)AuthorFilesLines
2023-06-20devices: Switch plugin device interface to use device_factory_tJerry Zhao1-40/+6
Plugins should now implement and register a device_factory_t to configure how that device should be parsed from a FDT, and an optional default DTS string. This drops support for command-line flag-based device configuration
2022-10-14Add dump memory command to interactive modeJerry Zhao1-0/+13
2021-02-04Fix compile errorsAndrew Waterman1-1/+1
2021-02-04Fix --kernel and --initrd options w.r.t. sparse mem_t implementationAndrew Waterman1-10/+43
For some reason, the old accessors for the non-sparse version were left dangling. These methods are used by the --kernel and --initrd options, and so those options were just broken. This also fixes a memory leak and refactors the implementation a bit.
2021-01-20add support to page on demand (#634)Chih-Min Chao1-0/+16
This patch splites the target-requested memory regions into pages and only allocates host memory when it is accessed to reduce larget memory sceniaro in 64 bit target system Co-authored-by: Dave.Wen <dave.wen@sifive.com>
2019-07-22Implement MMIO device plugins.Aaron Jones1-0/+40
2017-10-19Fix bus_t bug with devices at 0x0Evan Cox1-10/+30
Fix a bug that prevented bus_t from storing to, loading from, or finding a device that existed at address 0x0. Resolves: #135
2017-05-01Fix segfault when accessing bad memory addressesAndrew Waterman1-7/+4
2017-04-30Support more flexible main memory allocationAndrew Waterman1-0/+11
2016-05-23Remove debug printfs.Tim Newsome1-4/+1
2016-05-23Have Debug memory kind of working again.Tim Newsome1-9/+4
Debug exception -> ROM -> RAM -> ROM, then something goes wrong.
2016-05-23Add debug_module bus device.Tim Newsome1-0/+8
This should replace the ROM hack I implemented earlier, but for now both exist together. Back to the point where gdb connects, core jumps to ROM->RAM->ROM.
2016-04-28Remove MTIME[CMP]; add RTC deviceAndrew Waterman1-18/+0
2015-11-12Generate device tree for target machineAndrew Waterman1-0/+40