diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-12-12 11:47:02 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-12-16 16:29:10 -0600 |
| commit | c67d424c6d130f810c251576fd55389d1385edb5 (patch) | |
| tree | b274f3f80d0d06457696a53b35bb98bbfe572035 /tb/top/conspiracion.cpp | |
| parent | 79e05aa7f0ccce6eb26248ddef3e928727857a9c (diff) | |
Show main cp15 registers in register dumps
Diffstat (limited to '')
| -rw-r--r-- | tb/top/conspiracion.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tb/top/conspiracion.cpp b/tb/top/conspiracion.cpp index 55798cc..bdda56c 100644 --- a/tb/top/conspiracion.cpp +++ b/tb/top/conspiracion.cpp @@ -17,6 +17,11 @@ #include "Vconspiracion_platform.h" #include "Vconspiracion_vga_domain.h" #include "Vconspiracion_core_control.h" +#include "Vconspiracion_core_cp15_far.h" +#include "Vconspiracion_core_cp15_fsr.h" +#include "Vconspiracion_core_cp15_syscfg.h" +#include "Vconspiracion_core_cp15_ttbr.h" +#include "Vconspiracion_core_cp15.h" #include "Vconspiracion_core_fetch.h" #include "Vconspiracion_core_mmu.h" #include "Vconspiracion_core_psr.h" @@ -427,6 +432,10 @@ int main(int argc, char **argv) std::fprintf(ctrl, "%08x spsr_und\n", core.psr->spsr_und_word); std::fprintf(ctrl, "%08x spsr_fiq\n", core.psr->spsr_fiq_word); std::fprintf(ctrl, "%08x spsr_irq\n", core.psr->spsr_irq_word); + std::fprintf(ctrl, "%08x sysctrl\n", core.cp15->syscfg->read); + std::fprintf(ctrl, "%08x ttbr\n", core.cp15->ttbr->read); + std::fprintf(ctrl, "%08x far\n", core.cp15->far_->read); + std::fprintf(ctrl, "%08x fsr\n", core.cp15->fsr->read); std::fputs("=== end-regs ===\n", ctrl); }; |
