]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/qtest/boot-serial-test: Reduce for() loop in PL011 tests
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 13 Jan 2025 12:35:33 +0000 (12:35 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Jan 2025 12:35:33 +0000 (12:35 +0000)
commitafd757e46166afe86a6df4407b64203e53ea44f4
treea6ac8d65db1346a2fcac2b629b560bb00c3a3069
parent16e8c947bd6f741d328bb1521f62f69dccaa3fe1
tests/qtest/boot-serial-test: Reduce for() loop in PL011 tests

Since registers are not modified, we don't need
to refill their values. Directly jump to the previous
store instruction to keep filling the TXDAT register.

The equivalent C code remains:

  while (true) {
      *UART_DATA = 'T';
  }

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/qtest/boot-serial-test.c