[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 2/2] tests/tcg: add a vtimer test for aarch64
From: |
Peter Maydell |
Subject: |
Re: [PATCH v1 2/2] tests/tcg: add a vtimer test for aarch64 |
Date: |
Fri, 17 Jan 2020 14:07:25 +0000 |
On Fri, 10 Jan 2020 at 16:16, Alex Bennée <address@hidden> wrote:
>
> Bug: https://bugs.launchpad.net/bugs/1859021
>
> Signed-off-by: Alex Bennée <address@hidden>
> ---
> 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.
thanks
-- PMM