The stval register is a read/write register. When a trap is taken
into S-mode, stval is either set to zero or written with exception-specific
information to assist software in handling the trap. The register only exists when
supervisor mode is enabled (C_USE_MMU > 2).
The exception-specific information is listed in the description of the Machine Trap Value Register (mtval).