diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-01-24 18:35:00 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-01-31 11:14:49 +0000 |
commit | f4c37813adf272b457d15ceb8c0301421f010343 (patch) | |
tree | 8c8a7a6d6b51d1c5addc1764add9872daf3eab5b /test9.c | |
parent | 723ca7aadb53d5619349db025fbae5507f2abfba (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>
Diffstat (limited to 'test9.c')
-rw-r--r-- | test9.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |