On 1/28/21 12:41 PM, Peter Maydell wrote: > Add a simple test of the CMSDK dual timer, since we're about to do > some refactoring of how it is clocked. > > Signed-off-by: Peter Maydell <[email protected]> > Message-id: [email protected] > --- > v1->v2 changes: > - phrase various clock_step() arguments as calculations > based on tick counts and the ns-per-tick value rather > than just the final numbers > - remove set-but-not-used QTestState *s variable > that gcc warns about but clang does not > - use 40 * 256 in test_prescale() as suggested by Luc > --- > tests/qtest/cmsdk-apb-dualtimer-test.c | 130 +++++++++++++++++++++++++ > MAINTAINERS | 1 + > tests/qtest/meson.build | 1 + > 3 files changed, 132 insertions(+) > create mode 100644 tests/qtest/cmsdk-apb-dualtimer-test.c
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
