Tim Newsome
5c18497225
Add --dmi-rti and --abstract-rti to test OpenOCD.
Optionally make spike behave more like real hardware, to automatically
test OpenOCD's handling of such hardware.
7 years ago
Andrew Waterman
1d66556fca
fix disassembly of c.addi4spn
Resolves #243
8 years ago
takeoverjp
0b8700bb61
Add "--log-cache-miss" option to generate a log of cache miss. ( #241 )
* Add "--log-cache-miss" option to generate a log of cache miss.
- This option must be used with "--ic" and/or "--dc" options
to enable cache simulation.
- This option is useful with "-l" option to understand
which instruction has caused the cache miss.
* Modify log format of cache miss to reduce log size.
8 years ago
Andrew Waterman
aff796dbf6
Handle spike-dasm inputs with leading 0x correctly
8 years ago
Andrew Waterman
fad88d8140
Fix several disassembler bugs
h/t Shane Lardinois
8 years ago
Andrew Waterman
747a54b103
Add --disable-dtb option to suppress writing the DTB to memory
8 years ago
Andrew Waterman
c0172e96bc
When no arguments are passed, print spike help, not fesvr help
8 years ago
Tim Newsome
aa8cbb1ccd
Add debug module authentication.
Off by default, enabled with --debug-auth.
The protocol is very simple (definitely not secure) to allow debuggers
to test their authentication feature. To authenticate a debugger must:
1. Read authdata
2. Write to authdata the value that it just read, plus 1
8 years ago
Tim Newsome
b2672e5d52
Add --debug-sba option
This lets the user control whether the system bus access implements bus
mastering.
8 years ago
Jonathan Neuschäfer
fd0dbf46c3
mem_t: Throw an error if zero-sized memory is requested ( #168 )
* 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.
8 years ago
Andrew Waterman
874e55888f
Add some missing RVC instructions to disassembler
8 years ago
Tim Newsome
46a6786091
Make progbuf a run-time option.
Also add an implicit ebreak after the program buffer. This is not part
of the spec, but hopefully it will be.
9 years ago
Gleb Gagarin
6c7c772b16
hartids knob description added
8 years ago
Gleb Gagarin
85efaaaba8
Support for non-contiguous hartids
8 years ago
Kito Cheng
8feec3d0a5
Implement Q extension for disassembler ( #153 )
9 years ago
Andrew Waterman
4c286ec230
Fix disassembly of c.li 0
Resolves #152
9 years ago
Palmer Dabbelt
7f746b7c2f
Correct c.li and c.lui disassembly ( #118 )
I currently get this disassembly
00004881 jr a7
but if I understand that's incorrect and I want
00004881 li a7, 0
If I'm reading the ISA manual correctly, the disassembler was just wrong
here.
9 years ago
Andrew Waterman
75f2a05df9
Set default entry point from ELF
9 years ago
Andrew Waterman
4859971a88
Add option to set start pc
9 years ago
Andrew Waterman
abb7dddfdf
Support more flexible main memory allocation
9 years ago
Andrew Waterman
115297efff
FMV.X.S/FMV.S.X -> FMV.X.W/FMV.W.X
9 years ago
Andrew Waterman
9b6843b58b
Remove hret instruction
9 years ago
Wesley W. Terpstra
0647cce541
configstring: rename variables to dts
9 years ago
Tim Newsome
f7f1105040
Fix stack overflow and support --rbb-port=0
9 years ago
Tim Newsome
94277648d5
OpenOCD does a dmi read and gets dummy value back.
9 years ago
Tim Newsome
4695be7cea
Refactor remote bitbang code.
9 years ago
Tim Newsome
d1f2cf337e
OpenOCD connects, and sends some data that we receive.
9 years ago
Andrew Waterman
03b8bad375
Disassemble RVC instructions based on XLEN
The interpretation of RVC opcodes depends on XLEN, and the disassembler
always assumed RV32.
h/t Michael Clark
10 years ago
Andrew Waterman
036c908666
Remove legacy HTIF; implement HTIF directly
10 years ago
neuschaefer
906bbfae48
Minor usability improvements ( #48 )
* spike_main/disasm.cc: Print unknown CSR numbers in hex
* interactive mode: Print "Unknown command" when appropriate
10 years ago
Tim Newsome
d1d8863086
Add --gdb-port
It's necessary to be able to run multiple spikes at once on the same
box.
10 years ago
Tim Newsome
bd17c7e5a8
Add -H to start halted.
10 years ago
Tim Newsome
d1ba8b5593
gdb can now read spike memory.
The endianness is wrong, but I think it might be that gdb doesn't have
it right. Need to investigate what architecture gdb thinks it's
debugging.
10 years ago
Tim Newsome
9f1ea45e41
Listen on a socket for gdb to connect to.
So far it just listens, and gdb times out because it's not getting any
messages back.
Receive packets and verify their checksum.
10 years ago
Andrew Waterman
b593e6df7a
Move much closer to new platform-M memory map
Reset vector is at 0x1000; below that is reserved for debug
Memory is at 0x80000000
10 years ago
Andrew Waterman
9220fdfe95
Add --dump-config-string flag
10 years ago
Andrew Waterman
a9c5b05eca
Remove MTIME[CMP]; add RTC device
10 years ago
Andrew Waterman
27e29e69cc
Split ERET into URET, SRET, HRET, MRET
10 years ago
Andrew Waterman
10ae74e48a
Allow configuration of default ISA with --with-isa
10 years ago
Andrew Waterman
5344292853
fix help message
10 years ago
Andrew Waterman
575054bc4e
Update to hopefully final RVC 1.9 encoding
11 years ago
Andrew Waterman
b0f3ed6e3b
more work towards RVC 1.8
11 years ago
Andrew Waterman
3fddbcc0a5
work towards rvc 1.8
11 years ago
Andrew Waterman
784e9891af
Move towards RVC v1.8
11 years ago
Prashanth Mundkur
b16ef94394
Add an option (-l) to display a log of execution in non-interactive mode.
Interactive (-d) mode overrides this option when both are specified.
11 years ago
Andrew Waterman
bdcb5b297f
New RV64C proposal
11 years ago
Andrew Waterman
c4350ef6ef
Support setting ISA/subsets with --isa flag
Default is RV64IMAFDC. Can do things like
--isa=RV32 (which implies IMAFDC)
--isa=IM (which implies RV64)
--isa=RV64IMAFDXhwacha
11 years ago
Andrew Waterman
7f3c072750
Implement RVC draft
11 years ago
Yunsup Lee
9af855a28e
correctly parse extension for spike-disasm
11 years ago
Andrew Waterman
d8022e9eda
properly sign-extend instructions in spike-dasm
11 years ago