diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-11-06 18:37:22 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-11-06 18:37:22 -0600 |
| commit | 177c8a0f0cff07010d01ead3f072777d94ebd97d (patch) | |
| tree | 4c749b9fb8ce72c570aa11081dccd319ffc41030 /tb | |
| parent | e952458d3b1fe3ea109f4122ad1658beda10285e (diff) | |
Export PSRs to simulation
Diffstat (limited to '')
| -rw-r--r-- | tb/top/conspiracion.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tb/top/conspiracion.cpp b/tb/top/conspiracion.cpp index fb65209..c671e77 100644 --- a/tb/top/conspiracion.cpp +++ b/tb/top/conspiracion.cpp @@ -13,6 +13,7 @@ #include "Vconspiracion_conspiracion.h" #include "Vconspiracion_platform.h" #include "Vconspiracion_core_control.h" +#include "Vconspiracion_core_psr.h" #include "Vconspiracion_core_regs.h" #include "Vconspiracion_core_reg_file.h" @@ -243,6 +244,12 @@ int main(int argc, char **argv) } std::printf("%08x pc\n", core.control->pc << 2); + std::printf("%08x cpsr\n", core.psr->cpsr_word); + std::printf("%08x spsr_svc\n", core.psr->spsr_svc_word); + std::printf("%08x spsr_abt\n", core.psr->spsr_abt_word); + std::printf("%08x spsr_und\n", core.psr->spsr_und_word); + std::printf("%08x spsr_fiq\n", core.psr->spsr_fiq_word); + std::printf("%08x spsr_irq\n", core.psr->spsr_irq_word); } const auto &dumps = *dump_mem; |
