Peter Maydell <peter.mayd...@linaro.org> writes:
> On Fri, 10 Jan 2020 at 16:16, Alex Bennée <alex.ben...@linaro.org> wrote: >> >> Bug: https://bugs.launchpad.net/bugs/1859021 >> >> Signed-off-by: Alex Bennée <alex.ben...@linaro.org> >> --- >> tests/tcg/aarch64/system/vtimer.c | 80 +++++++++++++++++++++++ >> tests/tcg/aarch64/Makefile.softmmu-target | 4 ++ >> 2 files changed, 84 insertions(+) >> create mode 100644 tests/tcg/aarch64/system/vtimer.c >> >> diff --git a/tests/tcg/aarch64/system/vtimer.c >> b/tests/tcg/aarch64/system/vtimer.c >> new file mode 100644 >> index 00000000000..2f6299b5d2c >> --- /dev/null >> +++ b/tests/tcg/aarch64/system/vtimer.c >> @@ -0,0 +1,80 @@ >> +/* >> + * Simple Virtual Timer Tests >> + * >> + * Note: kvm-unit-tests has a much more comprehensive exercising of >> + * the timer sub-system. However this test case can tweak _EL2 values >> + * to trigger bugs which can't be done with that. >> + * >> + * Copyright (c) 2020 Linaro Ltd >> + * >> + * SPDX-License-Identifier: GPL-2.0-or-later >> + */ >> + >> +#include <inttypes.h> >> +#include <minilib.h> >> + >> +/* grabbed from Linux */ >> +#define __stringify_1(x...) #x >> +#define __stringify(x...) __stringify_1(x) > > Code 'grabbed from Linux' is unlikely to be GPL-2-or-later... > > QEMU already has a stringify() macro in compiler.h. Hmm I don't think I can include compiler.h in a system mode test. I can certainly copy and paste our local version though ;-) > > thanks > -- PMM -- Alex Bennée