aboutsummaryrefslogtreecommitdiff
path: root/riscv
AgeCommit message (Collapse)AuthorFilesLines
2018-01-18Support debug system bus access.Tim Newsome5-20/+230
2018-01-09Use new debug_defines.h.Tim Newsome1-19/+19
2018-01-08mem_t: Throw an error if zero-sized memory is requested (#168)Jonathan Neuschäfer1-0/+2
* mem_t: Throw an error if zero-sized memory is requested If for some reason the user requests a memory size of 0 megabytes, print a useful error message. * Check for overflow in memory size If the user passes in a large enough memory size (-m) that the size in bytes doesn't fit into size_t, catch this error in the make_mems function.
2017-12-11Update debug_defines to latest version.Tim Newsome1-22/+48
2017-12-11Set impebreak.Tim Newsome2-1/+9
2017-12-11Update to latest debug_defines.h.Tim Newsome3-465/+411
2017-12-11Make progbuf a run-time option.Tim Newsome5-16/+35
Also add an implicit ebreak after the program buffer. This is not part of the spec, but hopefully it will be.
2017-11-27Rename badaddr to tvalAndrew Waterman5-25/+25
2017-11-27Rename sptbr to satpAndrew Waterman5-36/+36
2017-11-27Set tval to 0 on traps with no specified tvalAndrew Waterman2-5/+3
Simply not writing the register was not a conformant implementation.
2017-11-20Implement priv-1.11 interrupt-priority scheme (#161)Andrew Waterman1-1/+18
Closes #159. https://github.com/riscv/riscv-isa-manual/commit/a62e76cb16eb508199f74632eb8bf263739f25a3
2017-11-20Fix commitlog. (#162)Christopher Celio1-5/+8
A regression caused any instruction with rd=x0 to not be emitted.
2017-11-15Merge pull request #156 from p12nGH/noncontiguous_hartsAndrew Waterman2-4/+15
Support for non-contiguous hartids
2017-11-15Support for non-contiguous hartidsGleb Gagarin2-4/+15
2017-11-09Remove redundant U/S mode advertisementAndrew Waterman1-4/+0
2017-11-09H-mode no longer existsAndrew Waterman2-2/+0
It's supplanted by the hypervisor extension, which doesn't use the privilege encoding of 2; it still looks like supervisor (i.e. 1).
2017-11-09MPP is now WARLAndrew Waterman2-6/+23
2017-11-03Put HTIF in the device treePalmer Dabbelt1-0/+3
I wanted to actually put the address of the HTIF into the DTS, but that seems to be a bit too much work: since the HTIF addresses are just defined in an ELF file it's a bit awkward to make that work. Instead, I'm just putting a dummy HTIF key in the DTS.
2017-11-02Mask medeleg correctlyAndrew Waterman1-3/+7
2017-11-01Don't permit delegation of interrupts that M-mode should handleAndrew Waterman1-4/+3
2017-10-20Fix commit-log for Q extension, and for RV32 (#143)Andrew Waterman3-18/+53
* Fix commit-log for Q extension, and for RV32 The number of nibbles printed out now depends upon XLEN or FLEN, as appropriate. * Factor out FLEN calculation
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-10-19Fix implementation of FMIN/FMAX NaN caseAndrew Waterman6-6/+12
If rd=rs1 or rd=rs2, the NaN check examined the wrong value.
2017-10-15Include math.h for NAN (#137)jar1-0/+1
commit 85c40db208db3e26f507dc6a74a5dc540b504b5c introduced a NAN dependency but did not include the math.h header
2017-10-10Merge pull request #129 from riscv/q-extensionAndrew Waterman45-24/+258
Implement Q extension
2017-09-28Implement Q extensionAndrew Waterman45-24/+258
2017-09-21Actually let hartreset be set.Tim Newsome1-0/+1
2017-09-21Fix debug reset.Tim Newsome1-1/+7
ndmreset now resets all harts (instead of just the current hart), and hartreset resets the selected hart (instead of being ignored).
2017-09-21Fix corner case in repeated execution (#127)Tim Newsome2-4/+4
Specifically, don't print out the execution count if the same instruction is executed by different harts.
2017-09-21Fix comment typo. (#126)Tim Newsome1-1/+1
2017-09-12Don't take interrupts while in Debug Mode.Tim Newsome1-1/+1
2017-08-28Add a nice debug printf for debug_module_t::storeTim Newsome1-1/+13
2017-08-11Turn off debug module debug printfs.Tim Newsome1-2/+2
Nobody wants to see all that, and if they do they should recompile.
2017-08-07Fix multicore debug.Tim Newsome3-18/+12
In an older implementation I was thinking of having different entry points for different harts, but that's no longer true. Also get rid of a bunch of trailing whitespace.
2017-06-30Remove reference to H-mode in ECALLAndrew Waterman1-1/+1
2017-06-14Support 64-bit start PCs in reset vector.Tim Newsome1-12/+10
2017-06-09Return success on writes to abstractautoTim Newsome1-3/+5
This bug was exposed by newer OpenOCD which actually checks the result.
2017-06-08Reset to "success" instead of "error."dtm_reset_errorTim Newsome1-1/+1
OpenOCD actually checks this initial value now, and there's no reason for it to indicate error.
2017-06-07Forbid S-mode execution from user memoryAndrew Waterman1-2/+2
https://github.com/riscv/riscv-isa-manual/commit/285c81746fe664060b62ae0584865dbfa9f42e1a
2017-05-25minNum -> minimumNumberAndrew Waterman4-8/+16
2017-05-17Merge remote-tracking branch 'origin/priv-1.10'Palmer Dabbelt91-2992/+3566
2017-05-16Merge remote-tracking branch 'origin/debug-0.13' into priv-1.10Palmer Dabbelt17-2528/+2696
2017-05-15Better error message when doing DMI operations and we're busyPalmer Dabbelt1-2/+10
2017-05-15debug: whitespace errorsMegan Wachs1-2/+2
2017-05-15Merge branch 'debug-0.13' into HEADMegan Wachs1-0/+6
2017-05-13Make C.LI/C.LUI trapping behavior match specAndrew Waterman2-2/+1
2017-05-05UXL=SXL=MXLAndrew Waterman2-4/+18
https://github.com/riscv/riscv-isa-manual/commit/326bec83de23f4d2daf24cfed6b5251748cad632
2017-05-05Trap superpage PTEs when PPN LSBs are setAndrew Waterman1-0/+2
2017-05-03Add missing include for devices.hKito Cheng1-0/+2
- https://github.com/riscv/riscv-tools/issues/69
2017-05-01Fix segfault when accessing bad memory addressesAndrew Waterman3-11/+8