dev: add debug flag in register bank. (#386)

Print extra logs for the full/partial read/write access to the registers
through the register bank. The debug flag is empty by default and would
not print anything.

Test: run unittest of dev/reg_bank.test.xml to check the behavior would
not affect the original functionality.
run gem5 with debug flags and use m5term to poke on registers.
This commit is contained in:
hungweihsuG
2023-11-16 02:04:46 +08:00
committed by GitHub
parent a8440f367d
commit 83f1fe3fec
2 changed files with 67 additions and 69 deletions

View File

@@ -54,4 +54,4 @@ Source('pixelpump.cc')
DebugFlag('Intel8254Timer')
DebugFlag('MC146818')
GTest('reg_bank.test', 'reg_bank.test.cc')
GTest('reg_bank.test', 'reg_bank.test.cc', with_tag('gem5 trace'))