aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-01-24 18:35:00 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-01-31 11:14:49 +0000
commitf4c37813adf272b457d15ceb8c0301421f010343 (patch)
tree8c8a7a6d6b51d1c5addc1764add9872daf3eab5b
parent723ca7aadb53d5619349db025fbae5507f2abfba (diff)
test9: Drop the check of XPSR reset value
The XPSR is architecturally UNKNOWN on reset, so don't try to test its value. (QEMU happens to start up with the Z flag set and others clear.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--test9.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/test9.c b/test9.c
index dc5aa41..7bd2566 100644
--- a/test9.c
+++ b/test9.c
@@ -32,11 +32,14 @@ struct early_state_t {
void main(void)
{
- testInit(20);
+ testInit(19);
#define TEST(FLD, VAL) testEqI(VAL, early_state.FLD, #FLD)
TEST(marker, 0xdeadbeaf); /* check consistency w/ init-m-test9.S */
TEST(LR, 0xffffffff);
- TEST(XPSR, 0);
+ /* XPSR is generally architecturally UNKNOWN on reset, so don't test it */
+ puts("# XPSR ");
+ puthex(early_state.XPSR);
+ putc('\n');
TEST(PRIMASK, 0);
TEST(FAULTMASK, 0);
TEST(BASEPRI, 0);