diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-03 18:01:03 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-03 18:01:03 +0100 |
commit | 615060bc4017a3db864568ee3bb7bfb3ec18d2e7 (patch) | |
tree | 086203bcbedeb9f33ea9a8af5a21cf4cfa87a39b /qtmips_cli | |
parent | 08d7e3dabd81e9d6e4f73aa5889a1d709242177c (diff) | |
download | qtmips-615060bc4017a3db864568ee3bb7bfb3ec18d2e7.tar.gz qtmips-615060bc4017a3db864568ee3bb7bfb3ec18d2e7.tar.bz2 qtmips-615060bc4017a3db864568ee3bb7bfb3ec18d2e7.zip |
Add pipelined and no-delay-slot for qtmips_cli
Diffstat (limited to 'qtmips_cli')
-rw-r--r-- | qtmips_cli/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qtmips_cli/main.cpp b/qtmips_cli/main.cpp index 4fd6ce5..57187ce 100644 --- a/qtmips_cli/main.cpp +++ b/qtmips_cli/main.cpp @@ -16,6 +16,8 @@ void create_parser(QCommandLineParser &p) { p.addPositionalArgument("FILE", "Input ELF executable file"); p.addOptions({ + {"pipelined", "Configure CPU to use five stage pipeline."}, + {"no-delay-slot", "Disable jump delay slot."}, {{"trace-fetch", "tr-fetch"}, "Trace fetched instruction."}, {{"trace-pc", "tr-pc"}, "Print program counter register changes."}, {{"trace-gp", "tr-gp"}, "Print general purpose register changes. You can use * for all registers.", "REG"}, @@ -35,7 +37,8 @@ void configure_machine(QCommandLineParser &p, MachineConfig &cc) { } cc.set_elf(pa[0]); - // TODO + cc.set_delay_slot(!p.isSet("no-delay-slot")); + cc.set_pipelined(p.isSet("pipelined")); } void configure_tracer(QCommandLineParser &p, Tracer &tr) { |