summaryrefslogtreecommitdiff
path: root/eater_cpu/cpp/simpc_term.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'eater_cpu/cpp/simpc_term.cpp')
-rw-r--r--eater_cpu/cpp/simpc_term.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/eater_cpu/cpp/simpc_term.cpp b/eater_cpu/cpp/simpc_term.cpp
index 540cc98..a2144b2 100644
--- a/eater_cpu/cpp/simpc_term.cpp
+++ b/eater_cpu/cpp/simpc_term.cpp
@@ -42,7 +42,7 @@ void simpc_ui_write(const std::unique_ptr<Veater_computer> &topp, uint64_t i) {
// uint16_t opcode = topp->eater_computer->;
uint8_t opcode = topp->eater_computer->INS->r_datastore;
// topp->halt
- uint8_t halt = 0;
+ uint8_t halt = topp->eater_computer->flags.__PVT__halt;
PRINT_ME_W(status_top, 0, 0, "Step: %10lu", i);
PRINT_ME_W(status_top, 1, 0, "%-20s", paused ? "Paused" : "Running");
@@ -100,7 +100,7 @@ void simpc_ui_finish_message(const std::unique_ptr<VerilatedContext> &contextp,
PRINT_ME_W(status_top, 0, xpos, "Simulation finished.");
const char *msg;
// topp->halt
- bool halt = false;
+ bool halt = topp->eater_computer->flags.__PVT__halt;
if (halt) {
msg = "Halt encountered.";
} else if (!contextp->gotFinish()) {