]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/tcg: make aarch64 boot.S handle different starting modes
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 3 Jun 2025 11:01:50 +0000 (12:01 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Sat, 7 Jun 2025 14:15:30 +0000 (15:15 +0100)
commit4f5c81844c3b9185ad1cf80c1e17b05ec22e944a
tree4f38e31ee4728345481d1f94a985b64af78de5f2
parentcfd7ebd9b0dc18168cd97f12aeb0782ac0adf869
tests/tcg: make aarch64 boot.S handle different starting modes

Currently the boot.S code assumes everything starts at EL1. This will
break things like the memory test which will barf on unaligned memory
access when run at a higher level.

Adapt the boot code to do some basic verification of the starting mode
and the minimal configuration to move to the lower exception levels.
With this we can run the memory test with:

  -M virt,secure=on
  -M virt,secure=on,virtualization=on
  -M virt,virtualisation=on

If a test needs to be at a particular EL it can use the semihosting
command line to indicate the level we should execute in.

Cc: Julian Armistead <julian.armistead@linaro.org>
Cc: Jim MacArthur <jim.macarthur@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-ID: <20250603110204.838117-4-alex.bennee@linaro.org>
tests/tcg/aarch64/Makefile.softmmu-target
tests/tcg/aarch64/system/boot.S