aboutsummaryrefslogtreecommitdiff
path: root/riscv/interactive.cc
AgeCommit message (Collapse)AuthorFilesLines
2022-10-16Add interactive mode commands to read clint mtime/mtimecmpJerry Zhao1-0/+23
2022-10-14Add dump memory command to interactive modeJerry Zhao1-0/+14
2022-10-04Silence remaining unused-parameter warningsAndrew Waterman1-0/+4
Suppressing these individually would add too much clutter.
2022-10-03Fix newly introduced Clang warningsAndrew Waterman1-7/+12
2022-09-26Update interactive.ccXiaJin-RiVAI1-16/+189
support arrow/home/end keys in debug mode support the arrow/home/end keys to move the cursor and trace back the history command in the debug mode
2022-08-10Add space between if/while/switch and '('Weiwei Li1-6/+6
Add space between ')' and '{'
2022-08-10Fix code indentation in processor.cc, interactive.cc, debug_module.h/ccWeiwei Li1-13/+13
execute.cc, entropy_source.h and v_ext_macros.h
2022-08-10Fix description for mem related interactive commandsWeiwei Li1-4/+6
Add missed description for untiln interactive commands
2022-08-04 Add support for freg command to read X regs when enable Zfinxliweiwei1-12/+26
Update README
2022-07-07remove multi blank linesWeiwei Li1-1/+0
2022-03-12Construct an isa_parser_t and pass it to processor_t constructorRupert Swarbrick1-4/+4
This is a minor change, turning processor_t from a child class of isa_parser_t into a class that contains an isa_parser_t as a field. The point is that it is a step toward separating out "configuration" (and ISA string parsing) from processor state. This should be helpful for rejigging things so that we construct more from a supplied device tree.
2022-01-09Changes to be cleaner wrt. -WextraAndrew Waterman1-4/+2
h/t @jerinjoy See #901
2021-11-08Move definitions of P and require macrosAndrew Waterman1-4/+4
Avoids namespace conflicts with Boost. Fixes #820 in a better way.
2021-09-17Fix memory leakAndrew Waterman1-1/+1
2021-09-17Don't use "using"Andrew Waterman1-65/+55
2021-09-17Use RIAA pattern in manipulating ostream flagsAndrew Waterman1-31/+52
sout is renamed to sout_ to reduce likelihood programmers accidentally use it.
2021-09-14add option --cmd to read commands from file (#772)Elmar Melcher1-5/+21
2021-08-27include freg command in help text (#783)Elmar Melcher1-0/+1
2021-08-24error message for bad command argument (#777)emelcher1-5/+16
2021-08-16Fix stylistic mattersAndrew Waterman1-50/+45
2021-08-03substitute fprintf for socket streamElmar Melcher1-25/+31
2021-08-03call functions for socket input/output streamsElmar Melcher1-12/+24
2021-08-03functions needed for socket input/outputElmar Melcher1-0/+71
2021-08-03declare socket properties in sim_tElmar Melcher1-2/+2
2021-05-01Improve coding style of logging printfsAndrew Waterman1-9/+7
2021-04-13Display 32 bits (#693)emelcher1-5/+28
* make value display depend on max_xlen * try to make spike look for correct pk * PRIx64 instead of PRIx32, TARGET_ARCH back to 64 * 32 bit memory data, exception epc and tval
2020-11-29Fix #607: Add a core parameter to the interactive str command (#608)Will Hawkins1-4/+13
Add a core parameter to the interactive str command. This makes it possible for the spike user to specify the device whose memory contains the NUL-terminated string to be printed.
2020-06-16zfh: support register dump in interactive modeChih-Min Chao1-0/+9
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-10-22Catch polymorphic exceptions by reference (#352)Luís Marques1-2/+2
2019-06-18rvv: extend interactive debugChih-Min Chao1-0/+50
add command to show vector register in debug mode Signed-off-by: Bruce Hoult <bruce@hoult.org>
2018-10-18Provide a noisy until interactive commandHesham Almatary1-5/+17
This is useful for example when the trace until a PC value needs to be extracted (#246)
2018-03-06Narrow the interface used by the processors and memory to the top-level ↵Prashanth Mundkur1-4/+4
simulator/htif. This allows the implementation of an alternative top-level simulator class.
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-09-28Implement Q extensionAndrew Waterman1-3/+4
2017-04-10Implement new FP encodingAndrew Waterman1-2/+8
https://groups.google.com/a/groups.riscv.org/d/msg/isa-dev/_r7hBlzsEd8/cWPyJKMzCQAJ
2017-03-21riscv: remove dependency on num_coresWesley W. Terpstra1-1/+1
2017-03-07Don't overload illegal instruction trap in interactive codeAndrew Waterman1-8/+10
2016-06-22Remove legacy HTIF; implement HTIF directlyAndrew Waterman1-3/+2
2016-06-03Minor usability improvements (#48)neuschaefer1-0/+2
* spike_main/disasm.cc: Print unknown CSR numbers in hex * interactive mode: Print "Unknown command" when appropriate
2016-04-29Move much closer to new platform-M memory mapAndrew Waterman1-0/+1
Reset vector is at 0x1000; below that is reserved for debug Memory is at 0x80000000
2015-10-28Fix incorrect upper limit for loop on interactive int register display.SeungRyeol Lee1-1/+1
2015-07-13simplified default case and added commentsScott Beamer1-3/+2
2015-06-05allow interactive "reg" command to dump all registersMike Frysinger1-2/+12
It you want to scan all the registers at once (or at least a few), having to dump them one by one is kind of a pain. Change the behavior so that if the register number is omitted, it'll dump all of them.
2015-06-05add an interactive "pc" commandMike Frysinger1-0/+7
This lets you show the current pc quickly. Sometimes when displaying different state you can lose track of what the pc was. Add a simple command that plumbs in the existing functions to the user interface.
2015-06-05unify interactive core processingMike Frysinger1-18/+20
Different functions in here process the core argument in different ways. Unify all of them with a utility function.
2015-06-05add aliases for common interactive functionsMike Frysinger1-6/+12
Rather than using one letter commands everywhere, add support for "run" and "quit" and "help" as aliases to "r" and "q" and "h" respectively. This makes it a little inconsistent when some commands are one letters but others are full words.
2015-06-04add a help screen to interactive modeMike Frysinger1-0/+24
There's no documentation that covers all the available functionality (in source or the accompanied docs). Start a help command so that the info is always live and up-to-date for people.
2015-06-03move interactive function init out of main loopMike Frysinger1-14/+14
These values don't change between runs, so there's no point in recreating them on every instruction step. Pull it out to the top to simplify.
2015-03-12Update to new privileged specAndrew Waterman1-5/+18
Sorry, everyone.
2014-07-24added support for register convention names in debug modeScott Beamer1-2/+9