[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 11/14] tests/tcg: enable arm softmmu tests
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2 11/14] tests/tcg: enable arm softmmu tests |
Date: |
Mon, 20 Nov 2023 17:25:04 +0000 |
On Mon, 20 Nov 2023 at 15:08, Alex Bennée <alex.bennee@linaro.org> wrote:
>
> To make it easier to test 32 bit Arm softmmu issues implement a basic
> boot.S so we can build the multiarch tests. Currently CHECK_UNALIGNED
> is disabled as I haven't got the right magic set for it to work.
>
> Message-Id: <20231115205542.3092038-10-alex.bennee@linaro.org>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> +# Running
> +QEMU_BASE_MACHINE=-M virt -cpu max -display none
> +QEMU_OPTS+=$(QEMU_BASE_MACHINE) -semihosting-config
> enable=on,target=native,chardev=output -kernel
> +
A minor thing, but I just ran into an awkwardness in the
equivalent set of variables in the aarch64 subdirectory:
if you ever want to define a different machine type then
there's no convenient way to say "give me the standard
options but a different machine", because the QEMU_OPTS
has the base machine in it and there's no variable with
just the semihosting etc options in it. For aarch64 I opted for:
+QEMU_BASE_ARGS=-semihosting-config enable=on,target=native,chardev=output
+QEMU_OPTS+=$(QEMU_BASE_MACHINE) $(QEMU_BASE_ARGS) -kernel
because then you can have a particular test do something like
+QEMU_EL2_MACHINE=-machine virt,virtualization=on,gic-version=2 -cpu
cortex-a57 -smp 4
+run-vtimer: QEMU_OPTS=$(QEMU_EL2_MACHINE) $(QEMU_BASE_ARGS) -kernel
You could argue about whether '-display none' should be in
QEMU_BASE_ARGS. I figure -kernel should not be because it
has the weird "must go last" property.
(These tweaks to the aarch64 makefile coming soon in a different
patch...)
thanks
-- PMM
- [PATCH v2 04/14] plugins: fix win plugin tests on cross compile, (continued)
- [PATCH v2 04/14] plugins: fix win plugin tests on cross compile, Alex Bennée, 2023/11/20
- [PATCH v2 08/14] docs/system: clarify limits of using gdbstub in system emulation, Alex Bennée, 2023/11/20
- [PATCH v2 07/14] docs/emulation: expand warning about semihosting, Alex Bennée, 2023/11/20
- [PATCH v2 13/14] configure: don't try a "native" cross for linux-user, Alex Bennée, 2023/11/20
- [PATCH v2 03/14] tests/docker: merge debian-native with debian-amd64, Alex Bennée, 2023/11/20
- [PATCH v2 01/14] tests/docker: replace fedora-i386 with debian-i686, Alex Bennée, 2023/11/20
- [PATCH v2 14/14] tests/tcg: finesse the registers check for "hidden" regs, Alex Bennée, 2023/11/20
- [PATCH v2 11/14] tests/tcg: enable arm softmmu tests, Alex Bennée, 2023/11/20
- Re: [PATCH v2 11/14] tests/tcg: enable arm softmmu tests,
Peter Maydell <=
- [PATCH v2 05/14] target/nios2: Deprecate the Nios II architecture, Alex Bennée, 2023/11/20
- [PATCH v2 09/14] hw/core: skip loading debug on all failures, Alex Bennée, 2023/11/20
- [PATCH v2 06/14] tests/tcg: fixup Aarch64 semiconsole test, Alex Bennée, 2023/11/20
- [PATCH v2 12/14] tests/tcg: enable semiconsole test for Arm, Alex Bennée, 2023/11/20
- [PATCH v2 10/14] testing: move arm system tests into their own folder, Alex Bennée, 2023/11/20