refactor: make cpu-impl private when not testing

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-09-27 01:25:47 +05:30
parent b55f6ee16b
commit 1baebd72f6
2 changed files with 13 additions and 6 deletions

View File

@@ -15,6 +15,10 @@ class CpuImpl {
void chg_mode(const Mode to);
void exec(const arm::Instruction instruction);
#ifndef MATAR_CPU_TESTS
private:
#endif
static constexpr uint8_t GPR_COUNT = 16;
static constexpr uint8_t GPR_FIQ_FIRST = 8;