mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
Nothing checked that the context switch, interrupt processing and the exception resume of the MIPS port keep the register sets which the ABI requires. Three defects of the port reached the test suite unseen. The interrupt return dropped the status register. The exception path saved a floating point data register in place of the control register. The exception resume left the call-saved registers as the fatal error chain left them. Add three test cases from the specification items spec/score/cpu/mips/val/context, spec/score/cpu/mips/val/interrupt and spec/score/cpu/mips/val/resume. Each case loads a distinct pattern into every register of its set, runs the operation and takes a trap. The frame of that trap reports what the operation left behind. So no register under test carries the address of the store-out. The cases join ts-validation-no-clock-0. That suite needs no clock driver, and the interrupt case raises the software interrupt of the processor through the TM27 support. Update #5754. Assisted-by: Claude:claude-opus-5 claude-code Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>