qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 8/8] tests/tcg: Add arm and aarch64 pc alignment tests


From: Richard Henderson
Subject: Re: [PATCH v2 8/8] tests/tcg: Add arm and aarch64 pc alignment tests
Date: Fri, 27 Aug 2021 21:04:24 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 8/26/21 6:54 AM, Peter Maydell wrote:
On Sat, 21 Aug 2021 at 21:09, Richard Henderson
<richard.henderson@linaro.org> wrote:

+    /*
+     * From v8, it is CONSTRAINED UNPREDICTABLE whether BXWritePC aligns
+     * the address or not.  If so, we can legitimately fall through.
+     */
+    return EXIT_SUCCESS;
+}

Can we get the test harness to run the test on a cortex-a9 guest CPU
so we can avoid the UNPREDICTABLE and can always check the signal
happened ? The test is a bit weak if it doesn't actually test that
we take an exception...

Well, it'll always raise an exception under qemu.

I wrote it this way so that it would also always succeed when run on real hardware. Even then, I have no specific knowledge of a cpu that does not raise an exception, but I only tested cortex-a57.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]