Download Application Note - Bound-T time and stack analyser
Transcript
Error Message The instruction word W at the normal return point A is not a valid SPARC instruction The normal return point A contains no instruction. Trap instruction in delay slot Meaning and Remedy Problem The program contains a subprogram call that seems to return to an address A that contains the word W which is not a valid SPARC instruction nor the special "unimplemented" instruction UNIMP. Reasons The call and the callee do not follow the standard calling protocol, or the program itself dynamically puts a valid instruction at address A before executing the call. Solution Ensure that the standard calling protocol is followed and that all code is statically present in the program's load image, not created or moved during execution. Problem The program contains a subprogram call that seems to return to an address A that is not in the code segment of the program (not loaded with an instruction). Reasons The call and the callee do not follow the standard calling protocol, or the program itself dynamically puts some instructions at address A before executing the call. Solution Ensure that the standard calling protocol is followed and that all code is statically present in the program, not created or moved during execution. Problem The program contains a Ticc (trap on integer condition) instruction in an illegal context (in the delay slot of a controltransfer instruction). Reasons The program is written like that. Solution Correct the target program. Unable to bound the WCET of the Problem RW Overflow (Underflow) handler. Using WCET = 0. Unaligned DOUBLEWORD in IU register R Unaligned T in FPU register F Bound-T for SPARC BoundT is unable to bound the WCET of a trap handler for the registerwindow trap analysis. This analysis is explained in section 2.2. Reasons The trap handler is written in a way that BoundT cannot analyse. There should be other error reports, before this one, that explain the problem in more detail. Solution User the option rw_overflow or rw_underflow to set the WCET of the trap handler, or disable the registerwindow trap analysis entirely. Problem The program uses IU register R as a doubleword operand, but R is an odd number. Reasons The program is written in that way. Solution Correct the program to use even register numbers for doubleword data. Problem The program uses FPU register F as an operand of the multiword floatingpoint type T, but F is not a multiple of the number of 32bit words in T. Reasons The program is written in that way. Solution Correct the program to use properly aligned register numbers for multiword floatingpoint data (extended and quadrupleprecision data). 0 63